Skip to content

Commit 67761db

Browse files
myabctoy
andauthored
Prefer RSpec predicate matchers
Co-authored-by: Ivan Kuchin <[email protected]>
1 parent 6f5b31a commit 67761db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/features/session_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,8 @@
321321
end
322322

323323
it "is is a boolean" do
324-
expect(@session.find_link("Link outside viewport").obscured?).to be true
325-
expect(@session.find_link("Below the fold").obscured?).to be true
324+
expect(@session.find_link("Link outside viewport")).to be_obscured
325+
expect(@session.find_link("Below the fold")).to be_obscured
326326
end
327327
end
328328
end

0 commit comments

Comments
 (0)