Sha256: e603eb805ce7e38192a73e8a859673b5423227afc0c44c42f4501f7135629c07
Contents?: true
Size: 656 Bytes
Versions: 13
Compression:
Stored size: 656 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 { should 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 call.should_receive(:foo).once route.dispatch call end end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems