spec/unit/braintree/util_spec.rb in braintree-2.38.0 vs spec/unit/braintree/util_spec.rb in braintree-2.39.0

- old
+ new

@@ -113,10 +113,10 @@ :add_ons => { :update => [{:foo => 10}], :add => [{:bar => 5}] } ) - end.to_not raise_error(ArgumentError, "invalid keys: add_ons[update][foo], add_ons[add][bar]") + end.to raise_error(ArgumentError, /invalid keys: add_ons\[add\]\[bar\], add_ons\[update\]\[foo\]/) end end describe "self._flatten_hash_keys" do it "flattens hash keys" do