1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

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

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