Class: Remarkable::Controller::Matchers::RespondWith
Instance Method Summary
collapse
#negative, #negative_failure_message, #spec
included
Constructor Details
Returns a new instance of RespondWith.
5
6
7
|
# File 'lib/remarkable/controller/macros/respond_with_matcher.rb', line 5
def initialize(type)
@type = type
end
|
Instance Method Details
#description ⇒ Object
19
20
21
|
# File 'lib/remarkable/controller/macros/respond_with_matcher.rb', line 19
def description
expectation
end
|
#failure_message ⇒ Object
23
24
25
|
# File 'lib/remarkable/controller/macros/respond_with_matcher.rb', line 23
def failure_message
@missing
end
|
#matches?(subject) ⇒ Boolean
9
10
11
12
13
14
15
16
17
|
# File 'lib/remarkable/controller/macros/respond_with_matcher.rb', line 9
def matches?(subject)
@subject = subject
initialize_with_spec!
assert_matcher do
respond_with_type?
end
end
|