Sha256: a7915668c3899512ac4a3783e9e9163e1b77438b14ee4336bed8e17ace6bcd5a

Contents?: true

Size: 675 Bytes

Versions: 4

Compression:

Stored size: 675 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 any(klass)
      Bogus::SameClass.new(klass)
    end

    def anything
      Bogus::Anything
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bogus-0.1.4 lib/bogus/mocking_dsl.rb
bogus-0.1.3 lib/bogus/mocking_dsl.rb
bogus-0.1.2 lib/bogus/mocking_dsl.rb
bogus-0.1.1 lib/bogus/mocking_dsl.rb