1
require File.dirname(__FILE__) + '/../../spec_helper.rb'
6
describe "AnyNumberOfTimes" do
8
@mock = Mock.new("test mock")
11
it "should pass if any number of times method is called many times" do
12
@mock.should_receive(:random_call).any_number_of_times
18
it "should pass if any number of times method is called once" do
19
@mock.should_receive(:random_call).any_number_of_times
23
it "should pass if any number of times method is not called" do
24
@mock.should_receive(:random_call).any_number_of_times