Sha256: 2bbb63de795daf6fa5509dfdec3d5ff61dc909ee5f8adcf06348e873567c254e
Contents?: true
Size: 485 Bytes
Versions: 1
Compression:
Stored size: 485 Bytes
Contents
require 'test_helper' require 'minitest/spec' class Minitest::SharedExamples < Module include Minitest::Spec::DSL end SharedExampleSpec = Minitest::SharedExamples.new do def setup sleep 0.1 end def test_mal sleep 0.1 assert_equal 4, 2 * 2 end def test_no_way sleep 0.2 refute_match(/^no/i, 'yes') end def test_that_will_be_skipped skip 'test this later' end end describe "test that use SharedExamples" do include SharedExampleSpec end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
knapsack-1.12.0 | test_examples/fast/shared_examples_test.rb |