Improve test for cast of text argument

This commit is contained in:
Jonas Nicklas 2013-03-26 16:52:48 +01:00
parent 5c1229acf9
commit 8121c043c3
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ Capybara::SpecHelper.spec '#find' do
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