mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-23 10:40:13 +01:00
Use RSpec 'expect' instead of 'should'
This commit is contained in:
parent
4ee8c2e7fd
commit
7a3f90a020
20 changed files with 208 additions and 248 deletions
|
|
@ -1,15 +1,15 @@
|
|||
Then /^the single action form should be visible$/ do
|
||||
page.should have_css("#todo_new_action", :visible => true)
|
||||
expect(page).to have_css("#todo_new_action", :visible => true)
|
||||
end
|
||||
|
||||
Then /^the single action form should not be visible$/ do
|
||||
page.should_not have_css("#todo_new_action", :visible=>true)
|
||||
expect(page).to_not have_css("#todo_new_action", :visible=>true)
|
||||
end
|
||||
|
||||
Then /^the multiple action form should be visible$/ do
|
||||
page.should have_css("#todo_multi_add", :visible => true)
|
||||
expect(page).to have_css("#todo_multi_add", :visible => true)
|
||||
end
|
||||
|
||||
Then /^the multiple action form should not be visible$/ do
|
||||
page.should_not have_css("#todo_multi_add", :visible=>true)
|
||||
expect(page).to_not have_css("#todo_multi_add", :visible=>true)
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue