Permalink
Browse files

Improve test for cast of text argument

  • Loading branch information...
1 parent 5c1229a commit 8121c043c3a2e81250ee825aacff98d0037635dd @jnicklas jnicklas committed Mar 26, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/capybara/spec/session/find_spec.rb
@@ -29,7 +29,7 @@
context "with :text option" do
it "casts text's argument to string" do
- expect { @session.find(:css, '.number', text: 42) }.to_not raise_error
+ @session.find(:css, '.number', text: 42).should have_content("42")
end
end

0 comments on commit 8121c04

Please sign in to comment.