Sha256: 455d563df5c6a686e8e0af73ee60212bb947f169deeb2fe2badb29bfc94330c7

Contents?: true

Size: 288 Bytes

Versions: 164

Compression:

Stored size: 288 Bytes

Contents

describe ActionSubscriber::Middleware::Router do
  include_context 'action subscriber middleware env'

  subject { described_class.new(app) }

  it "routes the event to the proper action" do
    allow_any_instance_of(env.subscriber).to receive(env.action)
    subject.call(env)
  end
end

Version data entries

164 entries across 164 versions & 1 rubygems

Version Path
action_subscriber-5.3.3-java spec/lib/action_subscriber/middleware/router_spec.rb
action_subscriber-5.3.3 spec/lib/action_subscriber/middleware/router_spec.rb
action_subscriber-5.3.2-java spec/lib/action_subscriber/middleware/router_spec.rb
action_subscriber-5.3.2 spec/lib/action_subscriber/middleware/router_spec.rb
action_subscriber-5.3.1-java spec/lib/action_subscriber/middleware/router_spec.rb
action_subscriber-5.3.1 spec/lib/action_subscriber/middleware/router_spec.rb
action_subscriber-5.3.1.pre-java spec/lib/action_subscriber/middleware/router_spec.rb
action_subscriber-5.3.1.pre spec/lib/action_subscriber/middleware/router_spec.rb
action_subscriber-5.3.0-java spec/lib/action_subscriber/middleware/router_spec.rb
action_subscriber-5.3.0 spec/lib/action_subscriber/middleware/router_spec.rb
action_subscriber-5.2.4-java spec/lib/action_subscriber/middleware/router_spec.rb
action_subscriber-5.2.4 spec/lib/action_subscriber/middleware/router_spec.rb
action_subscriber-5.2.3-java spec/lib/action_subscriber/middleware/router_spec.rb
action_subscriber-5.2.3 spec/lib/action_subscriber/middleware/router_spec.rb
action_subscriber-5.2.2-java spec/lib/action_subscriber/middleware/router_spec.rb
action_subscriber-5.2.2 spec/lib/action_subscriber/middleware/router_spec.rb
action_subscriber-5.2.1-java spec/lib/action_subscriber/middleware/router_spec.rb
action_subscriber-5.2.1 spec/lib/action_subscriber/middleware/router_spec.rb
action_subscriber-5.2.0-java spec/lib/action_subscriber/middleware/router_spec.rb
action_subscriber-5.2.0 spec/lib/action_subscriber/middleware/router_spec.rb