Sha256: 06657a3b07e0ccb26dc146fb1208cc12e60f7b8b4ba2a2dea22da3f040013629
Contents?: true
Size: 601 Bytes
Versions: 2
Compression:
Stored size: 601 Bytes
Contents
require 'test_helper' describe GatewayNotification do describe "create" do it "raise EmptyChargeId if charge_id = nil" do ->{ notification = GatewayNotification.create!(gateway: "webmoney") notification.approve }.must_raise GatewayNotification::EmptyChargeIdError end it "populates params with result" do gateway_notification = GatewayNotification.new adapter = stub(item_id: 42) gateway_notification.stubs(:adapter).returns(adapter) gateway_notification.save! gateway_notification.charge_id.must_equal 42 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
supercharged-2.2.0 | test/supercharged/models/geneway_notification_test.rb |
supercharged-2.1.0 | test/supercharged/models/geneway_notification_test.rb |