Sha256: c199c854cca60ea9e8170fc99819e97e6f219658d1eb5f5002f5bbe0d7a6f257

Contents?: true

Size: 685 Bytes

Versions: 13

Compression:

Stored size: 685 Bytes

Contents

Story: Test is defined, but not Test::Unit

  As an RSpec user who has my own library named Test (but not Test::Unit)
  I want to run examples without getting Test::Unit NameErrors

  Scenario Outline: Spec including Test const but not Test::Unit
    Given a file named "spec_including_test_but_not_unit.rb" with:
    """
    require 'rspec/autorun'

    module Test
    end

    describe "description" do
      it "should description" do
        1.should == 1
      end
    end
    """
    When I run "<Command> spec_including_test_but_not_unit.rb"
    Then the stderr should not match "Test::Unit"

  Scenarios: Run with ruby and spec
    | Command |
    | ruby    |
    | spec    |

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rspec-core-2.0.0.beta.3 features-pending/interop/test_but_not_test_unit.feature
rspec-core-2.0.0.beta.2 features-pending/interop/test_but_not_test_unit.feature
rspec-core-2.0.0.beta.1 features-pending/interop/test_but_not_test_unit.feature
rspec-core-2.0.0.a10 features-pending/interop/test_but_not_test_unit.feature
rspec-core-2.0.0.a9 features-pending/interop/test_but_not_test_unit.feature
rspec-core-2.0.0.a8 features-pending/interop/test_but_not_test_unit.feature
rspec-core-2.0.0.a7 features-pending/interop/test_but_not_test_unit.feature
rspec-core-2.0.0.a6 features-pending/interop/test_but_not_test_unit.feature
rspec-core-2.0.0.a5 features-pending/interop/test_but_not_test_unit.feature
rspec-core-2.0.0.a4 features-pending/interop/test_but_not_test_unit.feature
rspec-core-2.0.0.a3 features-pending/interop/test_but_not_test_unit.feature
rspec-core-2.0.0.a2 features-pending/interop/test_but_not_test_unit.feature
rspec-core-2.0.0.a1 features-pending/interop/test_but_not_test_unit.feature