Created
July 6, 2015 03:32
Revisions
-
osiro created this gist
Jul 6, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ require 'rails_helper' feature 'Volunteer can view profile of event', js: true do sign_in_as(:volunteer) scenario 'Volunteer participate to events' do event = FactoryGirl.create(:event).decorate visit(volunteer_event_path(event)) within("table.shifts") do click_on "Volunteer" end within(".shift-user.popup-content") do expect(page).to have_content event.name click_on "I want to volunteer" end within("table.shifts") do expect(page).to have_content("Withdrawn") end expect(event.shifts.first.users).to include(current_user) end end