Sha256: c48eb6a3292286537d392ce51c69b3b84d70be77fcec450022b415de2ccf9484
Contents?: true
Size: 706 Bytes
Versions: 3
Compression:
Stored size: 706 Bytes
Contents
require "spec_helper" require "moiper/notification_controller_helper" describe Moiper::NotificationControllerHelper do class DummyController include Moiper::NotificationControllerHelper def params {} end end describe "#moip_notification" do it "yields a Moip::Notification object" do controller = DummyController.new controller.moip_notification do |notification| notification.should be_kind_of Moiper::Notification end end it "allows custom params option" do controller = DummyController.new params = {} Moiper::Notification.should_receive(:new).with(params) controller.moip_notification(params) end end end
Version data entries
3 entries across 3 versions & 1 rubygems