lib/airborne/request_expectations.rb in airborne-0.0.15 vs lib/airborne/request_expectations.rb in airborne-0.0.16

- old
+ new

@@ -106,9 +106,11 @@ def expect_json_impl(expectations, hash) expectations.each do |prop_name, expected_value| actual_value = hash[prop_name] if(expected_value.class == Hash) expect_json_impl(expected_value, actual_value) + elsif(expected_value.class == Proc) + expected_value.call(actual_value) else expect(expected_value).to eq(actual_value) end end end \ No newline at end of file