lib/cucumber/platform.rb in cucumber-0.3.97 vs lib/cucumber/platform.rb in cucumber-0.3.98
- old
+ new
@@ -13,10 +13,15 @@
WINDOWS = Config::CONFIG['host_os'] =~ /mswin|mingw/
WINDOWS_MRI = WINDOWS && !JRUBY && !IRONRUBY
RAILS = defined?(Rails)
RUBY_BINARY = File.join(Config::CONFIG['bindir'], Config::CONFIG['ruby_install_name'])
RUBY_1_9 = RUBY_VERSION =~ /^1\.9/
-
- def self.file_mode(m) #:nodoc:
- RUBY_1_9 ? "#{m}:UTF-8" : m
+
+ class << self
+ attr_accessor :use_full_backtrace
+
+ def file_mode(m) #:nodoc:
+ RUBY_1_9 ? "#{m}:UTF-8" : m
+ end
end
+ self.use_full_backtrace = false
end
\ No newline at end of file