提交 bdb7329e 编写于 作者: M Mislav Marohnić

Monkeypatch Cucumber for Ruby 2.2.0 compat

https://github.com/cucumber/cucumber/pull/774
上级 4261fbf0
......@@ -2,6 +2,16 @@ require 'aruba/cucumber'
require 'fileutils'
require 'forwardable'
# Ruby 2.2.0 compat
Cucumber::Ast::Step.class_eval do
undef_method :text_length
def text_length(name=name())
self.class::INDENT + self.class::INDENT +
keyword.unpack('U*').length +
name.unpack('U*').length
end
end
system_git = `which git 2>/dev/null`.chomp
lib_dir = File.expand_path('../../../lib', __FILE__)
bin_dir = File.expand_path('../fakebin', __FILE__)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册