We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfc07e1 commit 13b1debCopy full SHA for 13b1deb
spec/matchers/be_pending_subscription_page.rb
@@ -23,8 +23,8 @@ class BePendingSubscriptionPage
23
# matches? is a required method for RSpec matchers
24
def matches?(actual_page)
25
expected_title = "Check your inbox"
26
- if actual_page.has_no_title?(expected_title)
27
- self.failure_message = "\nexpected title: #{expected_title}\n got title: #{actual_page.title}\n"
+ unless actual_page.has_title?(expected_title)
+ self.failure_message = "\nexpected title: '#{expected_title}'\n got title: '#{actual_page.title}'\n"
28
return false
29
end
30
0 commit comments