Sha256: 9ec09c2de8e285b980ba93dd998a0310702a13c5967d90dab3833ec40afcc6e6

Contents?: true

Size: 461 Bytes

Versions: 13

Compression:

Stored size: 461 Bytes

Contents

require 'test_helper'

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

13 entries across 13 versions & 1 rubygems

Version Path
knapsack-4.0.0 test_examples/fast/shared_examples_test.rb
knapsack-3.1.0 test_examples/fast/shared_examples_test.rb
knapsack-3.0.0 test_examples/fast/shared_examples_test.rb
knapsack-2.0.0 test_examples/fast/shared_examples_test.rb
knapsack-1.15.0 test_examples/fast/shared_examples_test.rb
knapsack-1.14.1 test_examples/fast/shared_examples_test.rb
knapsack-1.14.0 test_examples/fast/shared_examples_test.rb
knapsack-1.13.3 test_examples/fast/shared_examples_test.rb
knapsack-1.13.2 test_examples/fast/shared_examples_test.rb
knapsack-1.13.1 test_examples/fast/shared_examples_test.rb
knapsack-1.13.0 test_examples/fast/shared_examples_test.rb
knapsack-1.12.2 test_examples/fast/shared_examples_test.rb
knapsack-1.12.1 test_examples/fast/shared_examples_test.rb