lib/rspec-api/dsl/request/body.rb in rspec-api-0.1.0 vs lib/rspec-api/dsl/request/body.rb in rspec-api-0.1.1

- old
+ new

@@ -38,11 +38,11 @@ } end def should_be_filtered_by(filter_options) it { - if json_value = request_params[filter_options[:parameter].to_s] - expect(response_body).to be_filtered_by(filter_options[:attribute], json_value) + if json_value = request_params[filter_options[:name].to_s] + expect(response_body).to be_filtered_by(json_value, filter_options) else expect(response_body).to be_filtered_by(nil) end } end \ No newline at end of file