Module: MiniTest::Spec::DSL

Defined in:
lib/bogus/minitest/spec.rb

Instance Method Summary collapse

Instance Method Details

#fake(name, opts = {}, &block) ⇒ Object



12
13
14
# File 'lib/bogus/minitest/spec.rb', line 12

def fake(name, opts = {}, &block)
  let(name) { fake(name, opts, &block) }
end

#fake_class(name, opts = {}) ⇒ Object



16
17
18
# File 'lib/bogus/minitest/spec.rb', line 16

def fake_class(name, opts = {})
  before { fake_class(name, opts) }
end

#verify_contract(name, &block) ⇒ Object



20
21
22
23
# File 'lib/bogus/minitest/spec.rb', line 20

def verify_contract(name, &block)
  syntax = Bogus::MiniTestSyntax.new(self)
  Bogus.add_contract_verification(syntax, name, &block)
end