Class: ScraperWiki::API::Matchers::PrivacyStatusMatcher
Instance Method Summary
collapse
#does_not_match?, #initialize
Instance Method Details
#failure_message ⇒ Object
95
96
97
|
# File 'lib/scraperwiki-api/matchers.rb', line 95
def failure_message
"expected #{@actual['short_name']} to be #{@expected}"
end
|
#matches?(actual) ⇒ Boolean
90
91
92
93
|
# File 'lib/scraperwiki-api/matchers.rb', line 90
def matches?(actual)
super
actual['privacy_status'] == @expected
end
|
#negative_failure_message ⇒ Object
99
100
101
|
# File 'lib/scraperwiki-api/matchers.rb', line 99
def negative_failure_message
"expected #{@actual['short_name']} to not be #{@expected}"
end
|