spec/mongoid/two_spec.rb in money-rails-1.7.0 vs spec/mongoid/two_spec.rb in money-rails-1.8.0
- old
+ new
@@ -48,10 +48,10 @@
context "when MoneyRails.raise_error_on_money_parsing is true" do
before { MoneyRails.raise_error_on_money_parsing = true }
after { MoneyRails.raise_error_on_money_parsing = false }
it "raises exception if the mongoized value is a String with a hyphen" do
- expect { priceable_from_string_with_hyphen }.to raise_error ArgumentError
+ expect { priceable_from_string_with_hyphen }.to raise_error MoneyRails::Error
end
end
context "when MoneyRails.raise_error_on_money_parsing is false" do
it "does not mongoizes correctly a String with hyphen in its middle" do