Sha256: 59151cc16a92bcea12f256d50a623b742429e9660c357a2df90d928349c5e568
Contents?: true
Size: 668 Bytes
Versions: 8
Compression:
Stored size: 668 Bytes
Contents
# encoding: utf-8 require 'spec_helper' module Adhearsion class Router describe EventedRoute do let(:name) { 'catchall' } subject { Route.new name } before { subject.extend described_class } it { is_expected.to be_evented } describe "dispatching a call" do let(:call) { Call.new } context "via a block" do subject :route do Route.new 'foobar' do |c| c.foo end end it "should yield the call to the block" do expect(call).to receive(:foo).once route.dispatch call end end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems