Sha256: 5c62cca823b4b356a437acedc4abdb2fe40f5e9114a273911fe08a235dab1716
Contents?: true
Size: 763 Bytes
Versions: 15
Compression:
Stored size: 763 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) } end describe '.goto!' do let(:controller) { :some_controller } let(:action) { :show_basket } let(:args) { { customer_id: 3, product_id: 16, } } before { Vedeu::Router.stubs(:goto) } subject { Vedeu.trigger(:_goto_, controller, action, **args) } it { Vedeu::Router.expects(:goto) .with(:some_controller, :show_basket, args) subject } end end # Application end # Bindings end # Vedeu
Version data entries
15 entries across 15 versions & 1 rubygems