Class: Spec::Client::Http::Matcher::TransactionMatchers::BeSuccess
- Inherits:
-
VerboseHttpMatcher
- Object
- VerboseHttpMatcher
- Spec::Client::Http::Matcher::TransactionMatchers::BeSuccess
- Defined in:
- lib/spec/client/http/matcher/transaction_matchers.rb
Instance Attribute Summary
Attributes inherited from VerboseHttpMatcher
Instance Method Summary collapse
Methods inherited from VerboseHttpMatcher
Instance Method Details
#failure_message ⇒ Object
57 58 59 |
# File 'lib/spec/client/http/matcher/transaction_matchers.rb', line 57 def "expected success? to return true, got false" + "\n" + super end |
#matches?(transaction) ⇒ Boolean
52 53 54 55 |
# File 'lib/spec/client/http/matcher/transaction_matchers.rb', line 52 def matches?(transaction) super(transaction) && transaction.success? #(200..299).include? transaction.response.code end |
#negative_failure_message ⇒ Object
61 62 63 |
# File 'lib/spec/client/http/matcher/transaction_matchers.rb', line 61 def "expected success? to return false, got true" + "\n" + super end |