Sha256: 8f4a74cfcc2408d3e9a196b3e940c3c1bfb06109347408d02099108840d4e816

Contents?: true

Size: 304 Bytes

Versions: 7

Compression:

Stored size: 304 Bytes

Contents

require File.expand_path('../../spec_helper', __FILE__)

describe '#dont_allow' do
  subject { Object.new }

  it "raises a TimesCalledError if the method is actually called" do
    dont_allow(subject).foobar
    expect {
      subject.foobar
    }.to raise_error(RR::Errors::TimesCalledError)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rr-1.1.2 spec/suites/rspec_2/functional/dont_allow_spec.rb
rr-1.1.2.rc1 spec/suites/rspec_2/functional/dont_allow_spec.rb
rr-1.1.1.rc1 spec/suites/rspec_2/functional/dont_allow_spec.rb
rr-1.1.0 spec/suites/rspec_2/functional/dont_allow_spec.rb
rr-1.1.0.rc3 spec/suites/rspec_2/functional/dont_allow_spec.rb
rr-1.1.0.rc2 spec/suites/rspec_2/functional/dont_allow_spec.rb
rr-1.1.0.rc1 spec/suites/rspec_2/functional/dont_allow_spec.rb