lib/airborne/request_expectations.rb in airborne-0.2.1 vs lib/airborne/request_expectations.rb in airborne-0.2.2

- old
+ new

@@ -72,11 +72,11 @@ end def expect_json_impl(expected, actual) return if nil_optional_hash?(expected, actual) - actual = actual.to_s if expected.class == Regexp + actual = actual.to_s if expected.is_a?(Regexp) return expect(actual).to match(expected) if property?(expected) keys = [] @@ -227,10 +227,10 @@ raise ExpectationError, "Expected #{hash.class} #{hash}\nto be an object with property #{prop_name}" end end def property?(expectations) - [String, Regexp, Float, Fixnum, Bignum, TrueClass, FalseClass, NilClass].include?(expectations.class) + [String, Regexp, Float, Fixnum, Bignum, TrueClass, FalseClass, NilClass, Array].include?(expectations.class) end def get_mapper base_mapper = { integer: [Fixnum, Bignum],