Sha256: 151120409fe32c730c1f36049211fecd5edbaf35acaf4408d8d94360b21869d2

Contents?: true

Size: 1.16 KB

Versions: 125

Compression:

Stored size: 1.16 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 'spec'
      """
    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 'rubygems'
      require 'spork'
      
      Spork.prefork do
        require 'spec'
      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.state.should == :using_spork
          puts "Specs successfully run within spork"
        end
      end
      """
    When I fire up a spork instance with "spork rspec"
    And I run spec --drb spec/did_it_work_spec.rb 
    Then the output should contain "Specs successfully run within spork"
  

Version data entries

125 entries across 125 versions & 12 rubygems

Version Path
spork-0.9.0.rc5 features/unknown_app_framework.feature
spork-0.9.0.rc4 features/unknown_app_framework.feature
spork-0.9.0.rc3 features/unknown_app_framework.feature
nimboids-spork-0.8.99 features/unknown_app_framework.feature
nimboids-spork-0.9.0.rc2 features/unknown_app_framework.feature
invo-sporknife-0.1.0.3 features/unknown_app_framework.feature
invo-sporknife-0.1.0.2 features/unknown_app_framework.feature
invo-sporknife-0.1.0.1 features/unknown_app_framework.feature
invo-sporknife-0.1.0 features/unknown_app_framework.feature
invo-sporknife-0.1.0.pre features/unknown_app_framework.feature
spork-0.9.0.rc2 features/unknown_app_framework.feature
spork-0.9.0.rc features/unknown_app_framework.feature
wakiki-spork-0.8.5 features/unknown_app_framework.feature
spork-0.8.4 features/unknown_app_framework.feature
spork-0.8.3 features/unknown_app_framework.feature
spork-0.8.2 features/unknown_app_framework.feature
spork-0.8.1 features/unknown_app_framework.feature
spork-0.8.0 features/unknown_app_framework.feature
spork-0.7.8 features/unknown_app_framework.feature
spork-0.7.7 features/unknown_app_framework.feature