Sha256: 52e6b7d6b3a989c02f08b6b5c5909526bfb012d4a2ed5d11a7386e23d5f745ea

Contents?: true

Size: 1.13 KB

Versions: 13

Compression:

Stored size: 1.13 KB

Contents

Feature: Unknown app frameworks
  To increase to usefulness of Spork 
  Spork will work with unknown (or no) application frameworks

  Scenario: Unsporked spec_helper
  
    Given a file named "spec/spec_helper.rb" with:
      """
      require 'rubygems'
      require 'rspec'
      """
    When I run spork
    Then the error output should contain "Using RSpec"
    Then the error output should match /You must bootstrap .+spec\/spec_helper\.rb to continue/
  
  Scenario: Sporked spec_helper
    Given a file named "spec/spec_helper.rb" with:
      """
      require 'spork'
      
      Spork.prefork do
        require 'rspec'
      end
      
      Spork.each_run do
        $each_run
      end
      """
    And a file named "spec/did_it_work_spec.rb" with:
      """
      describe "Did it work?" do
        it "checks to see if all worked" do
          Spork.using_spork?.should == true
          puts 'Specs successfully run within spork'
        end
      end
      """
    When I fire up a spork instance with "spork rspec"
    And I run rspec --drb spec/did_it_work_spec.rb
    Then the output should contain "Specs successfully run within spork"

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
spork-1.0.0rc4 features/unknown_app_framework.feature
spork-1.0.0rc4-x86-mswin32 features/unknown_app_framework.feature
spork-1.0.0rc4-x86-mingw32 features/unknown_app_framework.feature
spork-1.0.0rc3 features/unknown_app_framework.feature
spork-1.0.0rc2 features/unknown_app_framework.feature
spork-1.0.0rc2-x86-mswin32 features/unknown_app_framework.feature
spork-1.0.0rc2-x86-mingw32 features/unknown_app_framework.feature
spork-1.0.0rc1 features/unknown_app_framework.feature
spork-1.0.0rc1-x86-mswin32 features/unknown_app_framework.feature
spork-1.0.0rc1-x86-mingw32 features/unknown_app_framework.feature
spork-1.0.0rc0-x86-mswin32 features/unknown_app_framework.feature
spork-1.0.0rc0-x86-mingw32 features/unknown_app_framework.feature
spork-1.0.0rc0 features/unknown_app_framework.feature