Class: Restspec::HeaderTests::ContainsTest
- Inherits:
-
Struct
- Object
- Struct
- Restspec::HeaderTests::ContainsTest
- Defined in:
- lib/restspec/rspec/matchers/have_header.rb
Instance Attribute Summary collapse
-
#expected_header_part ⇒ Object
Returns the value of attribute expected_header_part.
Instance Method Summary collapse
Instance Attribute Details
#expected_header_part ⇒ Object
Returns the value of attribute expected_header_part
36 37 38 |
# File 'lib/restspec/rspec/matchers/have_header.rb', line 36 def expected_header_part @expected_header_part end |
Instance Method Details
#perform(key, headers) ⇒ Object
37 38 39 |
# File 'lib/restspec/rspec/matchers/have_header.rb', line 37 def perform(key, headers) headers.fetch(key).include? expected_header_part end |