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
panjiva-spork-0.8.6 features/unknown_app_framework.feature
panjiva-spork-0.8.5.1 features/unknown_app_framework.feature
panjiva-spork-0.8.5 features/unknown_app_framework.feature
classiccms-0.7.5 vendor/bundle/gems/spork-0.9.0/features/unknown_app_framework.feature
classiccms-0.7.4 vendor/bundle/gems/spork-0.9.0/features/unknown_app_framework.feature
classiccms-0.7.3 vendor/bundle/gems/spork-0.9.0/features/unknown_app_framework.feature
bmabey-spork-0.5.9 features/unknown_app_framework.feature
smtlaissezfaire-spork-0.5.7 features/unknown_app_framework.feature
timcharper-spork-0.5.10 features/unknown_app_framework.feature
timcharper-spork-0.5.5 features/unknown_app_framework.feature
timcharper-spork-0.5.6 features/unknown_app_framework.feature
timcharper-spork-0.5.7 features/unknown_app_framework.feature
timcharper-spork-0.5.8 features/unknown_app_framework.feature
timcharper-spork-0.5.9 features/unknown_app_framework.feature
timcharper-spork-0.6.0 features/unknown_app_framework.feature
timcharper-spork-0.6.1 features/unknown_app_framework.feature
timcharper-spork-0.6.2 features/unknown_app_framework.feature
timcharper-spork-0.6.3 features/unknown_app_framework.feature
classiccms-0.7.2 vendor/bundle/gems/spork-0.9.0/features/unknown_app_framework.feature
classiccms-0.7.1 vendor/bundle/gems/spork-0.9.0/features/unknown_app_framework.feature