Skip to content

Commit

Permalink
Update specs to reflect UI changes for concept interaction.
Browse files Browse the repository at this point in the history
  • Loading branch information
zachlatta committed Oct 11, 2013
1 parent 7a8a2ea commit fc28b15
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/features/concept_show_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,22 @@
it { should have_content @student.full_name }

it "should not allow level changes without a comment" do
click_link "Change Level"
click_link "Edit"

select "2", from: "level"

click_link "Change Level"
click_link "Edit"

page.should have_css('div.fade') #modal form should remain active
page.should have_content("You must leave a comment.")
end

it "should allow level changes with a comment" do
click_link "Change Level"
click_link "Edit"
fill_in "Comment", with: "This is why I changed the level."
select "2", from: "level"

click_link "Change Level"
click_link "Edit"

page.should have_content("This is why I changed the level.")
end
Expand Down

0 comments on commit fc28b15

Please sign in to comment.