diff --git a/spec/views/admin/cfps/show.html.haml_spec.rb b/spec/views/admin/cfps/show.html.haml_spec.rb deleted file mode 100644 index f7821938..00000000 --- a/spec/views/admin/cfps/show.html.haml_spec.rb +++ /dev/null @@ -1,17 +0,0 @@ -require 'spec_helper' - -describe 'admin/cfps/show' do - - it 'renders call for papers details' do - conference = create(:conference) - assign :conference, conference - assign :program, conference.program - assign :cfp, create(:cfp, program: conference.program) - render - expect(rendered).to include('Start Date') - expect(rendered).to include('End Date') - 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 diff --git a/spec/views/admin/conferences/edit.html.haml_spec.rb b/spec/views/admin/conferences/edit.html.haml_spec.rb deleted file mode 100644 index 7964ec27..00000000 --- a/spec/views/admin/conferences/edit.html.haml_spec.rb +++ /dev/null @@ -1,11 +0,0 @@ -require 'spec_helper' - -describe 'admin/conferences/edit' do - - it 'renders conference details which are editable' do - @conference = create(:conference, title: 'openSUSE') - assign :conference, @conference - render template: 'admin/conferences/edit.html.haml' - expect(rendered).to have_selector("input[value='openSUSE']") - end -end diff --git a/spec/views/admin/conferences/index.html.haml_spec.rb b/spec/views/admin/conferences/index.html.haml_spec.rb deleted file mode 100644 index 4c837ed0..00000000 --- a/spec/views/admin/conferences/index.html.haml_spec.rb +++ /dev/null @@ -1,13 +0,0 @@ -require 'spec_helper' - -describe 'admin/conferences/index' do - let(:conference) { create(:conference, title: 'openSUSE Conference 2016') } - let(:second_conference) { create(:conference) } - - it 'renders all conference names with links' do - assign(:conferences, [conference, second_conference]) - render template: 'admin/conferences/index.html.haml' - expect(rendered).to include('openSUSE Conference 2016') - expect(rendered).to include(CGI.escapeHTML(second_conference.title)) - end -end diff --git a/spec/views/admin/conferences/new.html.haml_spec.rb b/spec/views/admin/conferences/new.html.haml_spec.rb deleted file mode 100644 index c1b24bff..00000000 --- a/spec/views/admin/conferences/new.html.haml_spec.rb +++ /dev/null @@ -1,14 +0,0 @@ -require 'spec_helper' - -describe 'admin/conferences/new' do - let(:conference) { build(:conference) } - - it 'renders the new template for the conference' do - assign(:conference, Conference.new) - render template: 'admin/conferences/new.html.haml' - expect(rendered).to include('Basic Information') - assign(:conference, conference) - render - expect(rendered).to include(CGI.escapeHTML(conference.title)) - end -end diff --git a/spec/views/admin/conferences/show.html.haml_spec.rb b/spec/views/admin/conferences/show.html.haml_spec.rb deleted file mode 100644 index e5a38e92..00000000 --- a/spec/views/admin/conferences/show.html.haml_spec.rb +++ /dev/null @@ -1,13 +0,0 @@ -require 'spec_helper' - -describe 'admin/conferences/show' do - - it 'renders conference dashboard' do - conference = create(:conference, title: 'openSUSE') - assign :conference, conference - assign :program, conference.program - assign :conference_progress, conference.get_status - render template: 'admin/conferences/show.html.haml' - expect(rendered).to include("Dashboard for #{conference.title}") - end -end diff --git a/spec/views/admin/difficulty_levels/index.html.haml_spec.rb b/spec/views/admin/difficulty_levels/index.html.haml_spec.rb deleted file mode 100644 index 984c90c4..00000000 --- a/spec/views/admin/difficulty_levels/index.html.haml_spec.rb +++ /dev/null @@ -1,14 +0,0 @@ -require 'spec_helper' - -describe 'admin/difficulty_levels/index' do - - it 'renders difficulty levels' do - conference = create(:conference) - @difficulty_level = create(:difficulty_level, program: conference.program) - assign :conference, conference - render - expect(rendered).to include('Example Difficulty Level') - expect(rendered).to include('Lorem Ipsum dolsum') - expect(rendered).to include('#FFFFFF') - end -end diff --git a/spec/views/admin/emails/index.html.haml_spec.rb b/spec/views/admin/emails/index.html.haml_spec.rb deleted file mode 100644 index 89c3c394..00000000 --- a/spec/views/admin/emails/index.html.haml_spec.rb +++ /dev/null @@ -1,32 +0,0 @@ -require 'spec_helper' -describe 'admin/emails/index' do - - it 'renders email templates' do - @conference = create(:conference) - assign :conference, @conference - @settings = create(:email_settings) - assign :settings, @settings - render - expect(rendered). - to have_selector("input[type='checkbox'][value='1']", count: 9) - expect(rendered). - 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') - expect(rendered). - to include('Conference dates have been updated') - expect(rendered). - 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') - expect(rendered). - to include('Please checkout the new updates to submit your proposal for Sample Conference') - expect(rendered). - to include('Sample Conference Cfp schedule is Public') - expect(rendered). - to include('Call for Papers schedule is Public.Checkout the link') - end -end diff --git a/spec/views/admin/event_types/index.html.haml_spec.rb b/spec/views/admin/event_types/index.html.haml_spec.rb deleted file mode 100644 index dbfbc3b2..00000000 --- a/spec/views/admin/event_types/index.html.haml_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -describe 'admin/event_types/index' do - - it 'renders event types' do - conference = create(:conference) - @event_type = create(:event_type, program: conference.program) - assign :conference, @event_type.program.conference - render - expect(rendered).to include('Example Event Type') - expect(rendered).to include('30') - expect(rendered).to include('0') - expect(rendered).to include('500') - end -end diff --git a/spec/views/admin/events/index.html.haml_spec.rb b/spec/views/admin/events/index.html.haml_spec.rb deleted file mode 100644 index 5a252862..00000000 --- a/spec/views/admin/events/index.html.haml_spec.rb +++ /dev/null @@ -1,41 +0,0 @@ -require 'spec_helper' - -describe 'admin/events/index' do - let!(:conference) { create(:conference) } - let!(:program) { conference.program } - let!(:event1) { create(:event, program: conference.program, title: 'event1', language: 'English') } - let!(:event2) { create(:event, program: conference.program, title: 'event2', language: 'German') } - - it 'renders all conference events' do - assign(:conference, conference) - assign(:program, conference.program) - program.languages = 'en,de' - assign(:events, [ event1, event2 ]) - assign(:event_types, [ create(:event_type, program: conference.program), create(:event_type, program: conference.program) ]) - assign(:tracks, [ create(:track, program: conference.program), create(:track, program: conference.program) ]) - assign(:difficulty_levels, [ create(:difficulty_level, program: conference.program), create(:difficulty_level, program: conference.program) ]) - - render - - expect(rendered).to have_selector('table thead th:nth-of-type(1)', text: 'ID') - expect(rendered).to have_selector('table thead th:nth-of-type(2)', text: 'Title') - expect(rendered).to have_selector('table thead th:nth-of-type(3)', text: 'Submitter') - expect(rendered).to have_selector('table thead th:nth-of-type(4)', text: 'Speaker') - expect(rendered).to have_selector('table thead th:nth-of-type(5)', text: 'Language') - expect(rendered).to have_selector('table thead th:nth-of-type(6)', text: 'Requires Registration') - expect(rendered).to have_selector('table thead th:nth-of-type(7)', text: 'Highlight') - expect(rendered).to have_selector('table thead th:nth-of-type(8)', text: 'Type') - expect(rendered).to have_selector('table thead th:nth-of-type(9)', text: 'Track') - expect(rendered).to have_selector('table thead th:nth-of-type(10)', text: 'Difficulty') - expect(rendered).to have_selector('table thead th:nth-of-type(11)', text: 'State') - - expect(conference.program.events.count).to eq 2 - expect(rendered).to have_selector('table tr:nth-of-type(1) td:nth-of-type(1)', text: event1.id) - expect(rendered).to have_selector('table tr:nth-of-type(1) td:nth-of-type(2)', text: 'event1') - expect(rendered).to have_selector('table tr:nth-of-type(1) td:nth-of-type(5)', text: 'English') - - expect(rendered).to have_selector('table tr:nth-of-type(2) td:nth-of-type(1)', text: event2.id) - expect(rendered).to have_selector('table tr:nth-of-type(2) td:nth-of-type(2)', text: 'event2') - expect(rendered).to have_selector('table tr:nth-of-type(2) td:nth-of-type(5)', text: 'German') - end -end diff --git a/spec/views/admin/lodgings/index.html.haml_spec.rb b/spec/views/admin/lodgings/index.html.haml_spec.rb deleted file mode 100644 index c0cdf72e..00000000 --- a/spec/views/admin/lodgings/index.html.haml_spec.rb +++ /dev/null @@ -1,22 +0,0 @@ -require 'spec_helper' - -describe 'admin/lodgings/index' do - it 'renders lodgings list' do - @conference = create(:conference) - @conference.venue = create(:venue) - @conference.lodgings << create(:lodging) - assign :venue, @conference.venue - render - expect(rendered).to include(CGI.escapeHTML(@conference.lodgings.first.name)) - end - - it 'prevents XSS in lodging description' do - @conference = create(:conference) - @conference.venue = create(:venue) - @conference.lodgings << create(:lodging_xss) - assign :venue, @conference.venue - render - expect(rendered).to_not have_selector('#divInjectedElement') - end - -end diff --git a/spec/views/admin/programs/show.html.haml_spec.rb b/spec/views/admin/programs/show.html.haml_spec.rb deleted file mode 100644 index ba4066d5..00000000 --- a/spec/views/admin/programs/show.html.haml_spec.rb +++ /dev/null @@ -1,17 +0,0 @@ -require 'spec_helper' - -describe 'admin/programs/show' do - - it 'renders call for papers details' do - conference = create(:conference) - assign :conference, conference - assign :program, conference.program - render - expect(rendered).to have_css('dt', text: 'Event types:') - expect(rendered).to have_css('dd', text: 'Talks and Workshops') - expect(rendered).to have_css('dt', text: 'Tracks:') - expect(rendered).to have_css('dt', text: 'Difficulty Levels:') - expect(rendered).to have_css('dd', text: 'Easy, Medium and Hard') - expect(rendered).to have_css('dt', text: 'Languages:') - end -end diff --git a/spec/views/admin/roles/index.html.haml_spec.rb b/spec/views/admin/roles/index.html.haml_spec.rb deleted file mode 100644 index dc4fba6b..00000000 --- a/spec/views/admin/roles/index.html.haml_spec.rb +++ /dev/null @@ -1,41 +0,0 @@ -require 'spec_helper' - -describe 'admin/roles/index' do - let(:conference) { create(:conference) } - let(:organizer_role) { Role.find_by(name: 'organizer', resource: conference) } - let!(:organizer) { create(:user, name: 'user name for organizer', email: 'organizer@osem.io', role_ids: organizer_role.id) } - - let(:cfp_role) { Role.find_by(name: 'cfp', resource: conference) } - let!(:cfp_user) { create(:user, name: 'user name for cfp', email: 'cfp@osem.io', role_ids: [cfp_role.id]) } - - let(:info_desk_role) { Role.find_by(name: 'info_desk', resource: conference) } - let(:volunteers_coordinator_role) { Role.find_by(name: 'volunteers_coordinator', resource: conference) } - - before(:each) do - assign :conference, conference - assign :roles, [organizer_role, cfp_role, info_desk_role, volunteers_coordinator_role] - - render - end - - it 'renders index' do - expect(organizer_role.users.count).to eq 1 - expect(rendered).to have_selector('table thead th:nth-of-type(1)', text: 'ID') - expect(rendered).to have_selector('table thead th:nth-of-type(2)', text: 'Name') - expect(rendered).to have_selector('table thead th:nth-of-type(3)', text: 'Description') - expect(rendered).to have_selector('table thead th:nth-of-type(4)', text: 'Users') - expect(rendered).to have_selector('table thead th:nth-of-type(5)', text: 'Actions') - - expect(rendered).to have_selector('table tbody tr:nth-of-type(1) td:nth-of-type(1)', text: organizer_role.id) - expect(rendered).to have_selector('table tbody tr:nth-of-type(1) td:nth-of-type(2)', text: 'Organizer') - expect(rendered).to have_selector('table tbody tr:nth-of-type(1) td:nth-of-type(3)', text: 'For the organizers of the conference (who shall have full access)') - expect(rendered).to have_selector('table tbody tr:nth-of-type(1) td:nth-of-type(4)', text: 'user name for organizer') - expect(rendered).to have_selector('table tbody tr:nth-of-type(1) td:nth-of-type(5)', text: 'Users') - - expect(rendered).to have_selector('table tbody tr:nth-of-type(2) td:nth-of-type(1)', text: cfp_role.id) - expect(rendered).to have_selector('table tbody tr:nth-of-type(2) td:nth-of-type(2)', text: 'Cfp') - expect(rendered).to have_selector('table tbody tr:nth-of-type(2) td:nth-of-type(3)', text: 'For the members of the CfP team') - expect(rendered).to have_selector('table tbody tr:nth-of-type(2) td:nth-of-type(4)', text: 'user name for cfp') - expect(rendered).to have_selector('table tbody tr:nth-of-type(2) td:nth-of-type(5)', text: 'Users') - end -end diff --git a/spec/views/admin/roles/show.html.haml_spec.rb b/spec/views/admin/roles/show.html.haml_spec.rb deleted file mode 100644 index 3f05f9e6..00000000 --- a/spec/views/admin/roles/show.html.haml_spec.rb +++ /dev/null @@ -1,28 +0,0 @@ -require 'spec_helper' - -describe 'admin/roles/show' do - let(:conference) { create(:conference) } - let(:organizer_role) { Role.find_by(name: 'organizer', resource: conference) } - let(:organizer) { create(:user, name: 'test name', email: 'test@email.osem', role_ids: [organizer_role.id]) } - - before(:each) do - sign_in organizer - assign :conference, conference - assign :selection, 'organizer' - assign :role, organizer_role - assign :users, [organizer] - render - end - - it 'renders show properly' do - expect(rendered).to include(organizer_role.name.capitalize) - expect(rendered).to include('Add user by email:') - expect(rendered).to have_selector('table thead th:nth-of-type(1)', text: '') - expect(rendered).to have_selector('table thead th:nth-of-type(2)', text: 'ID') - expect(rendered).to have_selector('table thead th:nth-of-type(3)', text: 'Name') - expect(rendered).to have_selector('table thead th:nth-of-type(4)', text: 'Email') - expect(rendered).to have_selector('table tbody tr:nth-of-type(1) td:nth-of-type(2)', text: organizer.id) - expect(rendered).to have_selector('table tbody tr:nth-of-type(1) td:nth-of-type(3)', text: 'test name') - expect(rendered).to have_selector('table tbody tr:nth-of-type(1) td:nth-of-type(4)', text: 'test@email.osem') - end -end diff --git a/spec/views/admin/rooms/index.html.haml_spec.rb b/spec/views/admin/rooms/index.html.haml_spec.rb deleted file mode 100644 index 961c016b..00000000 --- a/spec/views/admin/rooms/index.html.haml_spec.rb +++ /dev/null @@ -1,16 +0,0 @@ -require 'spec_helper' - -describe 'admin/rooms/index' do - - it 'renders rooms list' do - conference = create(:conference) - venue = create(:venue, conference: conference) - room = create(:room, name: 'Example Room', size: 4, venue: venue) - assign :conference, conference - assign :rooms, [room] - render - expect(rendered).to include('Example Room') - expect(rendered).to include('4') - end - -end diff --git a/spec/views/admin/sponsors/index.html.haml_spec.rb b/spec/views/admin/sponsors/index.html.haml_spec.rb deleted file mode 100644 index 3f0988e6..00000000 --- a/spec/views/admin/sponsors/index.html.haml_spec.rb +++ /dev/null @@ -1,17 +0,0 @@ -require 'spec_helper' - -describe 'admin/sponsors/index' do - it 'renders sponsorships' do - @conference = create(:conference) - @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(CGI.escapeHTML(@conference.sponsors.first.name)) - expect(rendered).to include(@conference.sponsors.first.website_url) - expect(rendered).to include(truncate(CGI.escapeHTML(@conference.sponsors.first.description))) - expect(rendered).to include(CGI.escapeHTML(@conference.sponsorship_levels.first.title)) - end -end diff --git a/spec/views/admin/sponsorship_levels/index.html.haml_spec.rb b/spec/views/admin/sponsorship_levels/index.html.haml_spec.rb deleted file mode 100644 index d599b1a3..00000000 --- a/spec/views/admin/sponsorship_levels/index.html.haml_spec.rb +++ /dev/null @@ -1,10 +0,0 @@ -require 'spec_helper' - -describe 'admin/sponsorship_levels/index' do - it 'renders sponsorship levels' do - @sponsorship_level = create(:sponsorship_level) - assign :conference, @sponsorship_level.conference - render - expect(rendered).to include(CGI.escapeHTML(@sponsorship_level.title)) - end -end diff --git a/spec/views/admin/tracks/index.html.haml_spec.rb b/spec/views/admin/tracks/index.html.haml_spec.rb deleted file mode 100644 index 1b755b5f..00000000 --- a/spec/views/admin/tracks/index.html.haml_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -describe 'admin/tracks/index' do - - it 'renders tracks' do - conference = create(:conference) - create(:track, name: 'Example Track', description: 'Lorem Ipsum dolsum', color: '#ffffff', program: conference.program) - assign :tracks, conference.program.tracks - assign :conference, conference - render - expect(rendered).to include('Example Track') - expect(rendered).to include('Lorem Ipsum dolsum') - expect(rendered).to include('#FFFFFF') - end -end diff --git a/spec/views/admin/volunteers/index.html.haml_spec.rb b/spec/views/admin/volunteers/index.html.haml_spec.rb deleted file mode 100644 index 7edef5e5..00000000 --- a/spec/views/admin/volunteers/index.html.haml_spec.rb +++ /dev/null @@ -1,28 +0,0 @@ -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) - expect(rendered).to include("#{Date.today.strftime('%Y')}") - expect(rendered).to include("#{Date.today.strftime('%B')}") - expect(rendered).to include("#{Date.today.strftime('%d')}") - expect(rendered).to include('Lorem Ipsum dolsum') - end - - it 'renders volunteers positions as vpositions' do - @vposition = create(:vposition) - @vposition.conference.update_attributes( - use_vpositions: true, use_volunteers: true, use_vdays: true) - assign :conference, @vposition.conference - render - expect(rendered).to include("#{Date.today}") - expect(rendered).to include('Example Volunteer Position') - expect(rendered).to include('Lorem Ipsum dolsum') - end -end diff --git a/spec/views/admin/volunteers/show.html.haml_spec.rb b/spec/views/admin/volunteers/show.html.haml_spec.rb deleted file mode 100644 index b322f996..00000000 --- a/spec/views/admin/volunteers/show.html.haml_spec.rb +++ /dev/null @@ -1,5 +0,0 @@ -require 'spec_helper' - -describe 'admin/volunteers/show' do - pending "add some examples to (or delete) #{__FILE__}" -end diff --git a/spec/views/conferences/index.html.haml_spec.rb b/spec/views/conferences/index.html.haml_spec.rb deleted file mode 100644 index c4ff3aa2..00000000 --- a/spec/views/conferences/index.html.haml_spec.rb +++ /dev/null @@ -1,10 +0,0 @@ -require 'spec_helper' - -describe 'conferences/index' do - it 'renders _conference partial for each conference' do - allow(view).to receive(:date_string).and_return('January 17 - 21 2014') - assign(:current, [create(:conference), create(:conference)]) - render - expect(view).to render_template(partial: '_conference_details', count: 2) - end -end diff --git a/spec/views/conferences/show.html.haml_spec.rb b/spec/views/conferences/show.html.haml_spec.rb deleted file mode 100644 index 72e68c4f..00000000 --- a/spec/views/conferences/show.html.haml_spec.rb +++ /dev/null @@ -1,58 +0,0 @@ -require 'spec_helper' -describe 'conferences/show.html.haml' do - let!(:conference) { create(:full_conference) } - - before(:each) do - allow(view).to receive(:date_string).and_return('January 17 - 21 2014') - assign :conference, conference - render - end - - it 'renders banner component' do - expect(rendered).to match(CGI.escapeHTML(conference.description)) - end - - it 'renders program partial' do - expect(view).to render_template(partial: 'conferences/_schedule_splashpage') - end - - it 'renders registration partial' do - expect(view).to render_template(partial: 'conferences/_registration') - end - - it 'renders call_for_paper partial' do - expect(rendered).to match(/We are ready to accept your proposals for sessions!/) - end - - it 'renders sponsors partial' do - expect(view).to render_template(partial: 'conferences/_sponsors') - expect(rendered).to match(conference.contact.email) - expect(rendered).to match(conference.sponsors.first.website_url) - expect(rendered).to match(CGI.escapeHTML(conference.sponsors.first.description)) - expect(rendered).to match(conference.sponsors.first.logo_file_name) - end - - it 'renders social media partial' do - expect(view).to render_template('conferences/_social_media') - expect(rendered).to match(conference.contact.facebook) - expect(rendered).to match(conference.contact.googleplus) - expect(rendered).to match(conference.contact.instagram) - expect(rendered).to match(conference.contact.twitter) - end - - it 'renders venue partial' do - expect(view).to render_template(partial: 'conferences/_venue') - expect(rendered).to match(CGI.escapeHTML(conference.venue.name)) - expect(rendered).to match(conference.venue.street) - expect(rendered).to match(conference.venue.website) - expect(rendered).to match(CGI.escapeHTML(conference.venue.description)) - end - - it 'renders lodging partial' do - expect(view).to render_template(partial: 'conferences/_lodging') - expect(rendered).to match(CGI.escapeHTML(conference.lodgings.first.name)) - expect(rendered).to match(CGI.escapeHTML(conference.lodgings.first.description)) - # FIXME: Lodging without image doesn't show link - # expect(rendered).to match(conference.lodgings.first.website_link) - end -end diff --git a/spec/views/proposals/show.html.haml_spec.rb b/spec/views/proposals/show.html.haml_spec.rb deleted file mode 100644 index 3ff48b23..00000000 --- a/spec/views/proposals/show.html.haml_spec.rb +++ /dev/null @@ -1,20 +0,0 @@ -require 'spec_helper' - -describe 'proposals/show' do - let!(:conference) { create(:conference) } - let!(:event) { create(:event_xss, program: conference.program, title: 'event1', language: 'English') } - let(:organizer_role) { Role.find_by(name: 'organizer', resource: conference) } - let(:organizer) { create(:user, name: 'test name', email: 'test@email.osem', role_ids: [organizer_role.id]) } - - it 'renders proposal information' do - sign_in organizer - - assign :conference, conference - assign :event, event - assign :speaker, organizer - - render template: 'proposals/show.html.haml' - - expect(rendered).to_not have_selector('#divInjectedElement') - end -end diff --git a/spec/views/users/show.html.haml_spec.rb b/spec/views/users/show.html.haml_spec.rb deleted file mode 100644 index 55fa2550..00000000 --- a/spec/views/users/show.html.haml_spec.rb +++ /dev/null @@ -1,17 +0,0 @@ -require 'spec_helper' - -describe 'users/show' do - let!(:conference) { create(:conference) } - let(:organizer_role) { Role.find_by(name: 'organizer', resource: conference) } - let(:organizer) { create(:user_xss, name: 'test name', email: 'test@email.osem', role_ids: [organizer_role.id]) } - - it 'renders proposal information' do - sign_in organizer - - assign :user, organizer - - render template: 'users/show.html.haml' - - expect(rendered).to_not have_selector('#divInjectedElement') - end -end