Class: RSpec::LiveControllers::Matchers::EndWithChunk
- Inherits:
-
Base
- Object
- Base
- RSpec::LiveControllers::Matchers::EndWithChunk
show all
- Defined in:
- lib/rspec/live_controllers/matchers/end_with_chunk.rb
Instance Attribute Summary
Attributes inherited from Base
#actual_matcher, #list_of_matchers, #response_body, #target_response
Instance Method Summary
collapse
Methods inherited from Base
#initialize, #matches?
Instance Method Details
#failure_message ⇒ Object
9
10
11
12
|
# File 'lib/rspec/live_controllers/matchers/end_with_chunk.rb', line 9
def failure_message
"Expect «#{response_body}» to have «#{list_of_matchers.join(' or' )}»" \
"in the end of the stream."
end
|
#failure_message_when_negated ⇒ Object
14
15
16
17
|
# File 'lib/rspec/live_controllers/matchers/end_with_chunk.rb', line 14
def failure_message_when_negated
"Expect «#{response_body}» to have «#{list_of_matchers.join(' or ')}»"\
" in the end of the stream."
end
|
#regexp(reg) ⇒ Object
5
6
7
|
# File 'lib/rspec/live_controllers/matchers/end_with_chunk.rb', line 5
def regexp(reg)
/#{reg}$/
end
|