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