test/test_commission.rb in mymoip-0.4.1 vs test/test_commission.rb in mymoip-0.5.0

- old
+ new

@@ -88,11 +88,11 @@ end def test_cannot_give_gross_amount_without_fixed_or_percentage_value_set instruction = stub(gross_amount: 200) subject = Fixture.commission(fixed_value: nil, percentage_value: nil) - assert_raise ArgumentError do + assert_raise MyMoip::InvalidComission do subject.gross_amount(instruction) end end def test_xml_format_with_fixed_value @@ -112,10 +112,10 @@ end def test_xml_method_raises_exception_when_called_with_invalid_params subject = Fixture.commission subject.stubs(:invalid?).returns(true) - assert_raise ArgumentError do + assert_raise MyMoip::InvalidComission do subject.to_xml end end end