mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-24 03:00:12 +01:00
Merge pull request #1824 from dnrce/remove-should
Convert a .should expectation to expect()
This commit is contained in:
commit
d7944c2464
1 changed files with 1 additions and 1 deletions
|
|
@ -113,7 +113,7 @@ end
|
|||
Then /^(?:|I )should see "([^"]*)" before "([^"]*)"$/ do |earlier_content, later_content|
|
||||
expect(page).to have_content(earlier_content)
|
||||
expect(page).to have_content(later_content)
|
||||
page.body.index(earlier_content).should < page.body.index(later_content)
|
||||
expect(page.body.index(earlier_content)).to be < page.body.index(later_content)
|
||||
end
|
||||
|
||||
Then /^(?:|I )should see \/([^\/]*)\/(?: within "([^"]*)")?$/ do |regexp, selector|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue