Sha256: 794d6806d39c539573121bb3a9b50ac1b41d56d67f63fe7f90037cbcf8d2abe3

Contents?: true

Size: 460 Bytes

Versions: 14

Compression:

Stored size: 460 Bytes

Contents

module RR
module Expectations
  describe TimesCalledExpectation, :shared => true do
    before do
      @space = Space.new
      @object = Object.new
      @method_name = :foobar
      @double = @space.create_double(@object, @method_name)
      @scenario = @space.create_scenario(@double)
      @scenario.with_any_args
    end

    def raises_expectation_error(&block)
      proc {block.call}.should raise_error(Errors::TimesCalledError)
    end
  end
end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rr-0.1.12 examples/rr/expectations/times_called_expectation/times_called_expectation_helper.rb
rr-0.1.10 examples/rr/expectations/times_called_expectation/times_called_expectation_helper.rb
rr-0.1.7 examples/rr/expectations/times_called_expectation/times_called_expectation_helper.rb
rr-0.1.11 examples/rr/expectations/times_called_expectation/times_called_expectation_helper.rb
rr-0.1.13 examples/rr/expectations/times_called_expectation/times_called_expectation_helper.rb
rr-0.1.15 examples/rr/expectations/times_called_expectation/times_called_expectation_helper.rb
rr-0.1.8 examples/rr/expectations/times_called_expectation/times_called_expectation_helper.rb
rr-0.1.14 examples/rr/expectations/times_called_expectation/times_called_expectation_helper.rb
rr-0.2.4 examples/rr/expectations/times_called_expectation/times_called_expectation_helper.rb
rr-0.2.3 examples/rr/expectations/times_called_expectation/times_called_expectation_helper.rb
rr-0.2.5 examples/rr/expectations/times_called_expectation/times_called_expectation_helper.rb
rr-0.1.9 examples/rr/expectations/times_called_expectation/times_called_expectation_helper.rb
rr-0.2.2 examples/rr/expectations/times_called_expectation/times_called_expectation_helper.rb
rr-0.2.1 examples/rr/expectations/times_called_expectation/times_called_expectation_helper.rb