Sha256: af1d71f693ac69e5984d065b227908e26f0b0c1f6ef9eb24f770499464f2f34b

Contents?: true

Size: 863 Bytes

Versions: 2

Compression:

Stored size: 863 Bytes

Contents

Feature: A command other than `rspec` can be run

Scenario: Run it
  Given a configured spec/spec_helper.rb
  And a file named "intermediate_runner.sh" with:
    """
    echo 'Running the intermediate script'
    rspec
    """
  And a file named "spec/example_spec.rb" with:
    """ruby
    require 'spec_helper'

    describe "Tests that fail when run in a specific order" do
      it "leaves bad global state" do
        $global_state = true
        expect($global_state).to be true
      end

      it "just takes up space" do
        expect(true).to be true
      end

      it "fails when run last" do
        expect($global_state).to be false
      end
    end
    """
  When I run `rspec-sad --rspec-command='bash ./intermediate_runner.sh'`
  Then the output should contain "Running the intermediate script"
  And the output should contain "Culprit found"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rspec-search-and-destroy-0.0.4 features/alternate_command.feature
rspec-search-and-destroy-0.0.3 features/alternate_command.feature