Sha256: 90314bc4006862aee042992255cf96d76575f927e1bc8a4749763b439e67666d

Contents?: true

Size: 704 Bytes

Versions: 40

Compression:

Stored size: 704 Bytes

Contents

class Spork::TestFramework::Cucumber < Spork::TestFramework
  DEFAULT_PORT = 8990
  HELPER_FILE = File.join(Dir.pwd, "features/support/env.rb")

  class << self
    # REMOVE WHEN SUPPORT FOR 0.3.95 AND EARLIER IS DROPPED
    attr_accessor :mother_object
  end

  def preload
    require 'cucumber'
    begin
      @step_mother = ::Cucumber::StepMother.new
      @step_mother.load_programming_language('rb')
    rescue NoMethodError => pre_cucumber_0_4 # REMOVE WHEN SUPPORT FOR PRE-0.4 IS DROPPED
      @step_mother = Spork::Server::Cucumber.mother_object
    end
    super
  end

  def run_tests(argv, stderr, stdout)
    ::Cucumber::Cli::Main.new(argv, stdout, stderr).execute!(@step_mother)
  end
end

Version data entries

40 entries across 40 versions & 8 rubygems

Version Path
panjiva-spork-0.8.6 lib/spork/test_framework/cucumber.rb
panjiva-spork-0.8.5.1 lib/spork/test_framework/cucumber.rb
panjiva-spork-0.8.5 lib/spork/test_framework/cucumber.rb
timcharper-spork-0.6.0 lib/spork/test_framework/cucumber.rb
timcharper-spork-0.6.1 lib/spork/test_framework/cucumber.rb
timcharper-spork-0.6.2 lib/spork/test_framework/cucumber.rb
timcharper-spork-0.6.3 lib/spork/test_framework/cucumber.rb
spork-0.8.5 lib/spork/test_framework/cucumber.rb
spork-0.9.0.rc3 lib/spork/test_framework/cucumber.rb
nimboids-spork-0.8.99 lib/spork/test_framework/cucumber.rb
nimboids-spork-0.9.0.rc2 lib/spork/test_framework/cucumber.rb
invo-sporknife-0.1.0.1 lib/spork/test_framework/cucumber.rb
invo-sporknife-0.1.0 lib/spork/test_framework/cucumber.rb
invo-sporknife-0.1.0.pre lib/spork/test_framework/cucumber.rb
spork-0.9.0.rc2 lib/spork/test_framework/cucumber.rb
spork-0.9.0.rc lib/spork/test_framework/cucumber.rb
wakiki-spork-0.8.5 lib/spork/test_framework/cucumber.rb
spork-0.8.4 lib/spork/test_framework/cucumber.rb
spork-0.8.3 lib/spork/test_framework/cucumber.rb
spork-0.8.2 lib/spork/test_framework/cucumber.rb