rubocop files update and auto correction
This commit is contained in:
parent
1a62dc930e
commit
1f82fbbdc6
88 changed files with 519 additions and 452 deletions
|
|
@ -1,7 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe 'admin/call_for_papers/show' do
|
||||
|
||||
it 'renders call for papers details' do
|
||||
assign :conference, create(:conference)
|
||||
assign :call_for_paper, create(:call_for_paper)
|
||||
|
|
@ -11,5 +10,4 @@ describe 'admin/call_for_papers/show' do
|
|||
expect(rendered).to include(1.day.ago.strftime('%A, %B %-d. %Y'))
|
||||
expect(rendered).to include(6.days.from_now.strftime('%A, %B %-d. %Y'))
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe 'admin/conference/edit' do
|
||||
|
||||
it 'renders conference details which are editable' do
|
||||
@conference = create(:conference, title: 'openSUSE')
|
||||
assign :conference, @conference
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe 'admin/conference/show' do
|
||||
|
||||
it 'renders conference dashboard' do
|
||||
conference = create(:conference, title: 'openSUSE')
|
||||
assign :conference, conference
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe 'admin/difficulty_levels/index' do
|
||||
|
||||
it 'renders difficulty levels' do
|
||||
@difficulty_level = create(:difficulty_level)
|
||||
assign :conference, @difficulty_level.conference
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
require 'spec_helper'
|
||||
describe 'admin/emails/index' do
|
||||
|
||||
it 'renders email templates' do
|
||||
@conference = create(:conference)
|
||||
assign :conference, @conference
|
||||
|
|
@ -8,25 +7,25 @@ describe 'admin/emails/index' do
|
|||
assign :settings, @settings
|
||||
render
|
||||
expect(rendered).
|
||||
to have_selector("input[type='checkbox'][value='1']", count: 9)
|
||||
to have_selector("input[type='checkbox'][value='1']", count: 9)
|
||||
expect(rendered).
|
||||
to have_selector("input[checked='checked'][type='checkbox'][value='1']", count: 6)
|
||||
to have_selector("input[checked='checked'][type='checkbox'][value='1']", count: 6)
|
||||
expect(rendered).to include('Lorem Ipsum Dolsum')
|
||||
expect(rendered).
|
||||
to include('Lorem ipsum dolor sit amet, consectetuer adipiscing elit')
|
||||
to include('Lorem ipsum dolor sit amet, consectetuer adipiscing elit')
|
||||
expect(rendered).
|
||||
to include('Conference dates have been updated')
|
||||
to include('Conference dates have been updated')
|
||||
expect(rendered).
|
||||
to include('Conference registration dates have been updated')
|
||||
to include('Conference registration dates have been updated')
|
||||
expect(rendered).to include('Venue has been updated')
|
||||
expect(rendered).to include('Venue has been Updated to Sample Location')
|
||||
expect(rendered).
|
||||
to include('Call for Papers dates have been updated')
|
||||
to include('Call for Papers dates have been updated')
|
||||
expect(rendered).
|
||||
to include('Please checkout the new updates to submit your proposal for Sample Conference')
|
||||
to include('Please checkout the new updates to submit your proposal for Sample Conference')
|
||||
expect(rendered).
|
||||
to include('Sample Conference Cfp schedule is Public')
|
||||
to include('Sample Conference Cfp schedule is Public')
|
||||
expect(rendered).
|
||||
to include('Call for Papers schedule is Public.Checkout the link')
|
||||
to include('Call for Papers schedule is Public.Checkout the link')
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe 'admin/event_types/index' do
|
||||
|
||||
it 'renders event types' do
|
||||
@event_type = create(:event_type)
|
||||
assign :conference, @event_type.conference
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
require 'spec_helper'
|
||||
describe 'admin/rooms/index' do
|
||||
|
||||
it 'renders rooms list' do
|
||||
@room = create(:room)
|
||||
assign :conference, @room.conference
|
||||
|
|
@ -8,5 +7,4 @@ describe 'admin/rooms/index' do
|
|||
expect(rendered).to include('Example Room')
|
||||
expect(rendered).to include('4')
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ describe 'admin/sponsors/index' do
|
|||
@conference.sponsorship_levels << create(:sponsorship_level, conference: @conference)
|
||||
@conference.sponsors << create(:sponsor, conference: @conference,
|
||||
sponsorship_level: @conference.sponsorship_levels.first
|
||||
)
|
||||
)
|
||||
assign :conference, @conference
|
||||
render
|
||||
expect(rendered).to include('Example sponsor')
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe 'admin/tracks/index' do
|
||||
|
||||
it 'renders tracks' do
|
||||
@track = create(:track)
|
||||
assign :conference, @track.conference
|
||||
|
|
|
|||
|
|
@ -1,14 +1,13 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe 'admin/volunteers/index' do
|
||||
|
||||
it 'renders volunteers days as vdays' do
|
||||
@vday = create(:vday)
|
||||
@vday.conference.update_attributes(use_volunteers: true, use_vdays: true)
|
||||
assign :conference, @vday.conference
|
||||
render
|
||||
expect(rendered).to have_selector(
|
||||
"input[checked='checked'][type='checkbox'][value='1']", count: 2)
|
||||
"input[checked='checked'][type='checkbox'][value='1']", count: 2)
|
||||
expect(rendered).to include("#{Date.today.strftime('%Y')}")
|
||||
expect(rendered).to include("#{Date.today.strftime('%B')}")
|
||||
expect(rendered).to include("#{Date.today.strftime('%d')}")
|
||||
|
|
@ -18,7 +17,7 @@ describe 'admin/volunteers/index' do
|
|||
it 'renders volunteers positions as vpositions' do
|
||||
@vposition = create(:vposition)
|
||||
@vposition.conference.update_attributes(
|
||||
use_vpositions: true, use_volunteers: true, use_vdays: true)
|
||||
use_vpositions: true, use_volunteers: true, use_vdays: true)
|
||||
assign :conference, @vposition.conference
|
||||
render
|
||||
expect(rendered).to include("#{Date.today}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue