Sha256: 0c3c0e35fc89932d42405fba3ef89014ee808442063881ab32ae07164d75f1fb

Contents?: true

Size: 1.08 KB

Versions: 14

Compression:

Stored size: 1.08 KB

Contents

Feature: Diagnostic Mode
  To help a developer quickly pinpoint why files are being loaded
  Spork provides a diagnostic mode
  That provides a list of which project files were loaded during prefork, and who loaded them.

  Scenario: Running spork --diagnose
    Given I am in the directory "test_project"
    And a file named "spec/spec_helper.rb" with:
      """
      require 'rubygems'
      require 'spork'

      Spork.prefork do
        require 'lib/awesome.rb'
        require '../external_dependency/super_duper.rb'
      end

      Spork.each_run do
        puts "I'm loading the stuff just for this run..."
      end
      """
    And a file named "lib/awesome.rb" with:
      """
      class Awesome
      end
      """
    And a file named "../external_dependency/super_duper.rb" with:
      """
      class Awesome
      end
      """
    When I run spork --diagnose
    Then the output should contain "lib/awesome.rb"
    And the output should contain "spec/spec_helper.rb:5"
    And the output should not contain "super_duper.rb"
    And the output should not contain "diagnose.rb"
     

Version data entries

14 entries across 14 versions & 3 rubygems

Version Path
smtlaissezfaire-spork-0.5.7 features/diagnostic_mode.feature
timcharper-spork-0.5.0 features/diagnostic_mode.feature
timcharper-spork-0.5.5 features/diagnostic_mode.feature
timcharper-spork-0.5.6 features/diagnostic_mode.feature
timcharper-spork-0.5.7 features/diagnostic_mode.feature
timcharper-spork-0.5.8 features/diagnostic_mode.feature
spork-0.5.8 features/diagnostic_mode.feature
spork-0.5.7 features/diagnostic_mode.feature
spork-0.5.1 features/diagnostic_mode.feature
spork-0.5.6 features/diagnostic_mode.feature
spork-0.5.5 features/diagnostic_mode.feature
spork-0.5.3 features/diagnostic_mode.feature
spork-0.5.4 features/diagnostic_mode.feature
spork-0.5.2 features/diagnostic_mode.feature