Sha256: 3b969562d10d9ca7cc20b2e85b09872f0988664461955a660b0d8ef37357d52e

Contents?: true

Size: 446 Bytes

Versions: 10

Compression:

Stored size: 446 Bytes

Contents

module RR
module Expectations
  describe TimesCalledExpectation, :shared => true do
    before do
      @space = Space.new
      @object = Object.new
      @method_name = :foobar
      @double = @space.double(@object, @method_name)
      @scenario = @space.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

10 entries across 10 versions & 1 rubygems

Version Path
rr-0.3.3 examples/rr/expectations/times_called_expectation/times_called_expectation_helper.rb
rr-0.3.4 examples/rr/expectations/times_called_expectation/times_called_expectation_helper.rb
rr-0.3.1 examples/rr/expectations/times_called_expectation/times_called_expectation_helper.rb
rr-0.3.2 examples/rr/expectations/times_called_expectation/times_called_expectation_helper.rb
rr-0.3.0 examples/rr/expectations/times_called_expectation/times_called_expectation_helper.rb
rr-0.3.5 examples/rr/expectations/times_called_expectation/times_called_expectation_helper.rb
rr-0.3.7 examples/rr/expectations/times_called_expectation/times_called_expectation_helper.rb
rr-0.3.8 examples/rr/expectations/times_called_expectation/times_called_expectation_helper.rb
rr-0.3.9 examples/rr/expectations/times_called_expectation/times_called_expectation_helper.rb
rr-0.3.6 examples/rr/expectations/times_called_expectation/times_called_expectation_helper.rb