Sha256: cfa0f41f8eb58a445070875a44dfa283e64458f6290477b92ddd7b72b3b47f71

Contents?: true

Size: 424 Bytes

Versions: 4

Compression:

Stored size: 424 Bytes

Contents

require 'spec_helper'

describe "using the rspec extensions" do
  it "should be able to determine if a call has not been made" do
    item = fake
    item.hello
    item.last("other")

    item.should_not have_received(:hello,"world")
    item.should have_received(:hello)
    item.should_not have_received(:once_more)
    item.should_not have_received(:last,"hello")
    item.should have_received(:last,"other")
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
developwithpassion_fakes-rspec-0.0.4 spec/specs/usage_spec.rb
developwithpassion_fakes-rspec-0.0.3 spec/specs/usage_spec.rb
developwithpassion_fakes-rspec-0.0.2 spec/specs/usage_spec.rb
developwithpassion_fakes-rspec-0.0.1 spec/specs/usage_spec.rb