Skip to content

Commit

Permalink
Add bip_bool test
Browse files Browse the repository at this point in the history
  • Loading branch information
Roger Campos committed Oct 24, 2011
1 parent 5f4fc61 commit 504cd0d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions spec/integration/js_spec.rb
Expand Up @@ -60,6 +60,22 @@
within("#country") do
page.should have_content("France")
end
end

it "should be able to use bip_bool to change a boolean value" do
@user.save!
visit user_path(@user)

within("#receive_email") do
page.should have_content("No thanks")
end

bip_bool :user, :receive_email

visit user_path(@user)
within("#receive_email") do
page.should have_content("Yes of course")
end

end
end
Expand Down

0 comments on commit 504cd0d

Please sign in to comment.