Sha256: d6bf80565b3f944c0c1730addfed86a0d4dff8f2889dc86cb907f4f42894626e
Contents?: true
Size: 749 Bytes
Versions: 3
Compression:
Stored size: 749 Bytes
Contents
module Bogus module MockingDSL def fake(*args, &block) Bogus.fake_for(*args, &block) end def fake_class(name, opts = {}) Bogus.fake_class(name, opts) 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 def make_duck(*args) Bogus.make_duck(*args) end def any_args Bogus::AnyArgs end def with(&block) Bogus::WithArguments.new(&block) end def matches(&block) Bogus::MatchesArgument.new(&block) end def any(klass) Bogus::SameClass.new(klass) end def anything Bogus::Anything end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bogus-0.1.7 | lib/bogus/mocking_dsl.rb |
bogus-0.1.6 | lib/bogus/mocking_dsl.rb |
bogus-0.1.5 | lib/bogus/mocking_dsl.rb |