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:
parent
5c1229acf9
commit
8121c043c3
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue