spec/spec_helper.rb in kosmas58-cucumber-0.3.97 vs spec/spec_helper.rb in kosmas58-cucumber-0.3.98
- old
+ new
@@ -6,8 +6,13 @@
ENV['CUCUMBER_COLORS']=nil
$:.unshift(File.dirname(__FILE__) + '/../lib')
require 'cucumber'
$:.unshift(File.dirname(__FILE__))
-::Term::ANSIColor.coloring = true
+Spec::Runner.configure do |config|
+ config.before(:each) do
+ ::Term::ANSIColor.coloring = true
+ Cucumber::Parser::NaturalLanguage.instance_variable_set(:@languages, nil)
+ end
+end
alias running lambda