Sha256: 2d252f18a2769a947cda5b23f67f1dd71b4da716cbe7b557b2198056e49c92c4
Contents?: true
Size: 583 Bytes
Versions: 1
Compression:
Stored size: 583 Bytes
Contents
require 'spec_helper' module Adhearsion describe DialplanController do include CallControllerTestHelpers it { should be_a DialplanController } it { should be_a CallController } let :dialplan do Proc.new { foo value } end before { subject.dialplan = dialplan } its(:dialplan) { should be dialplan } describe "running" do it "should execute the dialplan in the context of the controller" do flexmock subject, :value => :bar subject.should_receive(:foo).once.with(:bar) subject.run end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
adhearsion-2.0.0.alpha1 | spec/adhearsion/dialplan_controller_spec.rb |