Replace be_true and be_false expectations

Removed in RSpec 3.0
This commit is contained in:
Dan Rice 2014-06-25 17:10:27 -04:00
parent 7869ef2c74
commit c19af5b982
4 changed files with 9 additions and 9 deletions

View file

@ -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