lib/airborne/request_expectations.rb in airborne-0.1.12 vs lib/airborne/request_expectations.rb in airborne-0.1.13

- old
+ new

@@ -199,13 +199,10 @@ rescue raise ExpectationError, "Expected #{hash.class} #{hash}\nto be an object with property #{prop_name}" end end - # Convert integers in `old_expectations` to proc - # - # @param old_expectations [Hash] def convert_expectations_for_json_sizes(old_expectations) unless old_expectations.is_a?(Hash) return convert_expectation_for_json_sizes(old_expectations) end @@ -217,11 +214,9 @@ end memo[prop_name] = new_value end end - # @param expected_size [Integer] - # @return [Proc] def convert_expectation_for_json_sizes(expected_size) ->(data) { expect(data.size).to eq(expected_size) } end def is_property?(expectations)