require 'spec_helper' module <%= @plugin_name %> describe ControllerMethods do describe "mixed in to a CallController" do class TestController < Adhearsion::CallController include <%= @plugin_name %>::ControllerMethods end let(:mock_call) { double 'Call' } subject do TestController.new mock_call end describe "#greet" do it "greets with the correct parameter" do subject.expects(:play).once.with("Hello, Luca") subject.greet "Luca" end end end end end