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.5.5 features/unknown_app_framework.feature
spork-0.5.6 features/unknown_app_framework.feature
spork-0.5.4 features/unknown_app_framework.feature
spork-0.5.3 features/unknown_app_framework.feature
spork-0.5.2 features/unknown_app_framework.feature