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

Version Path
vedeu-0.5.11 test/lib/vedeu/bindings/application_test.rb
vedeu-0.5.10 test/lib/vedeu/bindings/application_test.rb
vedeu-0.5.9 test/lib/vedeu/bindings/application_test.rb
vedeu-0.5.8 test/lib/vedeu/bindings/application_test.rb
vedeu-0.5.7 test/lib/vedeu/bindings/application_test.rb
vedeu-0.5.6 test/lib/vedeu/bindings/application_test.rb
vedeu-0.5.5 test/lib/vedeu/bindings/application_test.rb
vedeu-0.5.4 test/lib/vedeu/bindings/application_test.rb
vedeu-0.5.3 test/lib/vedeu/bindings/application_test.rb
vedeu-0.5.2 test/lib/vedeu/bindings/application_test.rb
vedeu-0.5.1 test/lib/vedeu/bindings/application_test.rb
vedeu-0.5.0 test/lib/vedeu/bindings/application_test.rb
vedeu-0.4.65 test/lib/vedeu/bindings/application_test.rb
vedeu-0.4.64 test/lib/vedeu/bindings/application_test.rb
vedeu-0.4.63 test/lib/vedeu/bindings/application_test.rb