Sha256: 95181fd25cde1bc57545de34e40f6e20820f4e41aa6021dcc3141e7f3827e0c4
Contents?: true
Size: 594 Bytes
Versions: 4
Compression:
Stored size: 594 Bytes
Contents
require 'bogus/minitest' require_relative 'syntax' module MiniTest::Expectations infect_an_assertion :assert_received, :must_have_received, true infect_an_assertion :refute_received, :wont_have_received, true end class MiniTest::Spec module DSL def fake(name, opts = {}, &block) let(name) { fake(name, opts, &block) } end def fake_class(name, opts = {}) before { fake_class(name, opts) } end def verify_contract(name, &block) syntax = Bogus::MiniTestSyntax.new(self) Bogus.add_contract_verification(syntax, name, &block) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
bogus-0.1.7 | lib/bogus/minitest/spec.rb |
bogus-0.1.6 | lib/bogus/minitest/spec.rb |
bogus-0.1.5 | lib/bogus/minitest/spec.rb |
bogus-0.1.4 | lib/bogus/minitest/spec.rb |