Sha256: c316ff0a4e3e6f45a9a2876f3d187d999b233804fd8468217b315fff2084435d
Contents?: true
Size: 839 Bytes
Versions: 10
Compression:
Stored size: 839 Bytes
Contents
require 'test_helper' module Vedeu module Bindings describe Application do context 'the application specific events are defined' do it { Vedeu.bound?(:_goto_).must_equal(true) } it { Vedeu.bound?(:_action_).must_equal(true) } end describe '.goto!' do let(:controller) { :some_controller } let(:action) { :show_basket } let(:args) { { customer_id: 3, product_id: 16, } } before { Vedeu::Runtime::Router.stubs(:goto) } subject { Vedeu.trigger(:_goto_, controller, action, **args) } it { Vedeu::Runtime::Router.expects(:goto) .with(:some_controller, :show_basket, args) subject } end end # Application end # Bindings end # Vedeu
Version data entries
10 entries across 10 versions & 1 rubygems