Skip to content

Commit

Permalink
fixed broken css selectors in spec. have no idea why they were passin…
Browse files Browse the repository at this point in the history
…g before
  • Loading branch information
michaelglass committed Mar 18, 2013
1 parent 2f560a3 commit 0e09648
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/requests/event_organizers_request_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
end

it "should assign the selected user as an organizer and display the name and email" do
user_to_assign = find("option[#{@user1.id.to_s}]")
user_to_assign = find("option[value='#{@user1.id}']")
select(user_to_assign.text, :from =>'event_organizer_user_id')

click_button "Assign"
Expand All @@ -41,7 +41,7 @@
end

it "should assign the selected user as an organizer and remove the selected user from the user select options" do
user_to_assign = find("option[#{@user1.id.to_s}]")
user_to_assign = find("option[value='#{@user1.id}']")
select(user_to_assign.text, :from =>'event_organizer_user_id')

click_button "Assign"
Expand All @@ -68,7 +68,7 @@

click_button "Remove"

removed_user = find("option[#{@user1.id.to_s}]")
removed_user = find("option[value='#{@user1.id}']")
removed_user.value.should eq(@user1.id.to_s)
removed_user.text.should eq(@user1.full_name)
end
Expand Down

0 comments on commit 0e09648

Please sign in to comment.