Permalink
Browse files

Always attempt to load cucumber

  • Loading branch information...
1 parent 958663b commit fd495dadb0f6f3f4296de8770cc6f1a499aa5fcd @sandro sandro committed Apr 20, 2010
Showing with 11 additions and 6 deletions.
  1. +9 −6 lib/specjour/cucumber.rb
  2. +2 −0 lib/specjour/worker.rb
View
15 lib/specjour/cucumber.rb
@@ -1,11 +1,14 @@
module Specjour
module Cucumber
- require 'cucumber'
- require 'cucumber/formatter/progress'
+ begin
+ require 'cucumber'
+ require 'cucumber/formatter/progress'
- autoload :Dispatcher, 'specjour/cucumber/dispatcher'
- autoload :DistributedFormatter, 'specjour/cucumber/distributed_formatter'
- autoload :FinalReport, 'specjour/cucumber/final_report'
- autoload :Printer, 'specjour/cucumber/printer'
+ require 'specjour/cucumber/dispatcher'
+ require 'specjour/cucumber/distributed_formatter'
+ require 'specjour/cucumber/final_report'
+ require 'specjour/cucumber/printer'
+ rescue LoadError
+ end
end
end
View
2 lib/specjour/worker.rb
@@ -1,4 +1,6 @@
module Specjour
+ require 'specjour/cucumber'
+
class Worker
include Protocol
include SocketHelpers

0 comments on commit fd495da

Please sign in to comment.