Allow use of Cucumber 2.1 or greater
This commit is contained in:
parent
d7bac8cc40
commit
8a09418083
2
Gemfile
2
Gemfile
|
@ -12,7 +12,7 @@ end
|
||||||
group :test do
|
group :test do
|
||||||
gem 'redgreen', '~> 1.2'
|
gem 'redgreen', '~> 1.2'
|
||||||
gem 'shoulda', '~> 3.5'
|
gem 'shoulda', '~> 3.5'
|
||||||
gem 'cucumber', '~> 2.0', '< 2.1'
|
gem 'cucumber', '~> 2.1'
|
||||||
gem 'simplecov', '~> 0.9'
|
gem 'simplecov', '~> 0.9'
|
||||||
gem 'jekyll_test_plugin'
|
gem 'jekyll_test_plugin'
|
||||||
gem 'jekyll_test_plugin_malicious'
|
gem 'jekyll_test_plugin_malicious'
|
||||||
|
|
|
@ -2,7 +2,6 @@ require 'fileutils'
|
||||||
require 'colorator'
|
require 'colorator'
|
||||||
require 'cucumber/formatter/console'
|
require 'cucumber/formatter/console'
|
||||||
require 'cucumber/formatter/io'
|
require 'cucumber/formatter/io'
|
||||||
require 'gherkin/formatter/escaping'
|
|
||||||
|
|
||||||
module Features
|
module Features
|
||||||
module Support
|
module Support
|
||||||
|
@ -17,12 +16,11 @@ module Features
|
||||||
include FileUtils
|
include FileUtils
|
||||||
include Cucumber::Formatter::Console
|
include Cucumber::Formatter::Console
|
||||||
include Cucumber::Formatter::Io
|
include Cucumber::Formatter::Io
|
||||||
include Gherkin::Formatter::Escaping
|
|
||||||
attr_writer :indent
|
attr_writer :indent
|
||||||
attr_reader :runtime
|
attr_reader :runtime
|
||||||
|
|
||||||
def initialize(runtime, path_or_io, options)
|
def initialize(runtime, path_or_io, options)
|
||||||
@runtime, @io, @options = runtime, ensure_io(path_or_io, "pretty"), options
|
@runtime, @io, @options = runtime, ensure_io(path_or_io), options
|
||||||
@exceptions = []
|
@exceptions = []
|
||||||
@indent = 0
|
@indent = 0
|
||||||
@prefixes = options[:prefixes] || {}
|
@prefixes = options[:prefixes] || {}
|
||||||
|
|
Loading…
Reference in New Issue