lib/rspec-api/dsl/request/headers.rb in rspec-api-0.1.1 vs lib/rspec-api/dsl/request/headers.rb in rspec-api-0.1.2
- old
+ new
@@ -5,10 +5,10 @@
extend ActiveSupport::Concern
module ClassMethods
def should_match_headers_expectations(status_code)
should_have_json_content_type if has_entity_body? status_code
- should_be_paginated(rspec_api[:page]) if rspec_api[:array] && rspec_api[:page]
+ should_be_paginated(rspec_api[:page][:name]) if rspec_api[:array] && rspec_api[:page]
end
private
def should_have_json_content_type
\ No newline at end of file