Sha256: 33d4c03e88b6b23f285bc82a5fd6ad4ba3eb8f0909034729caa918038f496ebd
Contents?: true
Size: 646 Bytes
Versions: 1
Compression:
Stored size: 646 Bytes
Contents
module Bogus module RSpecExtensions def fake(name, opts = {}, &block) let(name) { Bogus.fake_for(name, opts, &block) } end def verify_contract(name) before do Bogus.record_calls_for(name) end RSpec.configure do |config| config.after(:suite) { Bogus.verify_contract!(name) } end end end module MockingDSL def fake(*args) Bogus.create_anonymous_stub(*args) end def stub(*args) Bogus.create_stub(*args) end def have_received(*args) Bogus.have_received(*args) end def mock(*args) Bogus.create_mock(*args) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bogus-0.0.2 | lib/bogus/rspec_extensions.rb |