lib/cucumber/cli/main.rb in cucumber-0.7.0.beta.4 vs lib/cucumber/cli/main.rb in cucumber-0.7.0.beta.5

- old
+ new

@@ -4,11 +4,10 @@ require 'rubygems' require 'gherkin' end require 'optparse' require 'cucumber' -require 'ostruct' require 'logger' require 'cucumber/parser' require 'cucumber/feature_file' require 'cucumber/formatter/color_io' require 'cucumber/cli/configuration' @@ -100,20 +99,10 @@ private def enable_diffing if configuration.diff_enabled? - begin - require 'spec/expectations' - begin - require 'spec/runner/differs/default' # RSpec >=1.2.4 - rescue ::LoadError - require 'spec/expectations/differs/default' # RSpec <=1.2.3 - end - options = OpenStruct.new(:diff_format => :unified, :context_lines => 3) - ::Spec::Expectations.differ = ::Spec::Expectations::Differs::Default.new(options) - rescue ::LoadError => ignore - end + require 'cucumber/rspec/diffing' end end def trap_interrupt trap('INT') do