Sha256: 49aeb76124dbcb4b55685447ffd871e4f93b9ce71fe8338baff00969998500c8
Contents?: true
Size: 563 Bytes
Versions: 21
Compression:
Stored size: 563 Bytes
Contents
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) { mock '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
Version data entries
21 entries across 21 versions & 1 rubygems