Sha256: f26a1b11d7e0b1779266a7cb103f56acfb83e5aa4d5cadc88c2d2698e95c544a
Contents?: true
Size: 946 Bytes
Versions: 3
Compression:
Stored size: 946 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 it "should be able to determine if a call has been made a certain number of times" do item = fake item.hello item.hello item.last("other") item.should_not have_received(:hello,"world") item.should have_received_occurences(twice,:hello) item.should have_received(:hello) item.should_not have_received(:once_more) item.should_not have_received(:last,"hello") item.should have_received_occurences(once,:last,"other") item.should_not have_received_occurences(twice,:last) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
developwithpassion_fakes-rspec-0.0.7 | spec/specs/usage_spec.rb |
developwithpassion_fakes-rspec-0.0.6 | spec/specs/usage_spec.rb |
developwithpassion_fakes-rspec-0.0.5 | spec/specs/usage_spec.rb |