Sha256: c22b8f4df8f4ad39ec7b65e0dbedca6c208c4c8303626e1d151a94814ed20504

Contents?: true

Size: 1.2 KB

Versions: 2

Compression:

Stored size: 1.2 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

2 entries across 2 versions & 1 rubygems

Version Path
milhouse-spork-0.7.5.4 features/unknown_app_framework.feature
milhouse-spork-0.7.5.1 features/unknown_app_framework.feature