Skip to content

Instantly share code, notes, and snippets.

@libryder
Created August 31, 2012 19:44
Show Gist options
  • Save libryder/3558054 to your computer and use it in GitHub Desktop.
Save libryder/3558054 to your computer and use it in GitHub Desktop.
Testing call controllers in Adhearsion 2.0
# 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