Created
August 31, 2012 19:44
-
-
Save libryder/3558054 to your computer and use it in GitHub Desktop.
Testing call controllers in Adhearsion 2.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
require 'spec_helper' | |
describe MyController do | |
let(:mock_call) { mock 'Call', :to => '1112223333', :from => "2223334444" } | |
let(:metadata) { {} } | |
subject { MyController.new(mock_call, metadata) } | |
it "should have empty metadata" do | |
subject.metadata.should eq({}) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment