Sha256: 1b64a341e67f49010cbcd11f55a514717a670aec349540093af81bfb96b2100a

Contents?: true

Size: 338 Bytes

Versions: 18

Compression:

Stored size: 338 Bytes

Contents

require "examples/example_helper"

module RR
module Expectations
describe TimesCalledExpectation, ".new" do
  it "doesn't accept both an argument and a block" do
    proc do
      TimesCalledExpectation.new(2) {|value| value == 2}
    end.should raise_error(ArgumentError, "Cannot pass in both an argument and a block")
  end
end
end
end

Version data entries

18 entries across 18 versions & 1 rubygems

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