mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-23 01:06:11 +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
|
|
@ -149,14 +149,14 @@ end
|
|||
Then /^the "([^"]*)" checkbox(?: within "([^"]*)")? should be checked$/ do |label, selector|
|
||||
with_scope(selector) do
|
||||
field_checked = find_field(label)['checked']
|
||||
expect(field_checked).to be_true
|
||||
expect(field_checked).to be true
|
||||
end
|
||||
end
|
||||
|
||||
Then /^the "([^"]*)" checkbox(?: within "([^"]*)")? should not be checked$/ do |label, selector|
|
||||
with_scope(selector) do
|
||||
field_checked = find_field(label)['checked']
|
||||
expect(field_checked).to be_false
|
||||
expect(field_checked).to be false
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue