mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-21 16:36:08 +01:00
Replace be_true and be_false expectations
Removed in RSpec 3.0
This commit is contained in:
parent
7869ef2c74
commit
c19af5b982
4 changed files with 9 additions and 9 deletions
|
|
@ -91,7 +91,7 @@ end
|
|||
Then /^the selected project should be "([^"]*)"$/ do |content|
|
||||
# Works for mobile. TODO: make it work for both mobile and non-mobile
|
||||
if content.blank?
|
||||
expect(page.has_css?("select#todo_project_id option[selected='selected']")).to be_false
|
||||
expect(page.has_css?("select#todo_project_id option[selected='selected']")).to be false
|
||||
else
|
||||
expect(page.find("select#todo_project_id option[selected='selected']").text).to match(/#{content}/)
|
||||
end
|
||||
|
|
@ -100,7 +100,7 @@ end
|
|||
Then /^the selected context should be "([^"]*)"$/ do |content|
|
||||
# Works for mobile. TODO: make it work for both mobile and non-mobile
|
||||
if content.blank?
|
||||
expect(page.has_css?("select#todo_context_id option[selected='selected']")).to be_false
|
||||
expect(page.has_css?("select#todo_context_id option[selected='selected']")).to be false
|
||||
else
|
||||
expect(page.find("select#todo_context_id option[selected='selected']").text).to match(/#{content}/)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue