Skip to content

Commit

Permalink
Merge pull request #10 from alex-slynko-wonga/new_cucumber
Browse files Browse the repository at this point in the history
Support for cucumber 1.3.0 and higher
  • Loading branch information
e2 committed Sep 26, 2014
2 parents 255a993 + a926c05 commit 0549c1a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ source "https://rubygems.org"
gemspec

gem 'rake'
gem 'rspec'
gem 'rspec', '~> 2.14'

# The development group will no be
# installed on Travis CI.
Expand All @@ -18,4 +18,4 @@ platforms :rbx do
gem 'racc'
gem 'rubysl', '~> 2.0'
gem 'psych'
end
end
2 changes: 1 addition & 1 deletion guard-cucumber.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Gem::Specification.new do |s|
s.rubyforge_project = 'guard-cucumber'

s.add_dependency 'guard', '>= 1.1.0'
s.add_dependency 'cucumber', '>= 1.2.0'
s.add_dependency 'cucumber', '>= 1.3.0'

s.add_development_dependency 'bundler', '~> 1.1'

Expand Down
4 changes: 2 additions & 2 deletions lib/guard/cucumber/notification_formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def before_feature_element(feature_element)
#
def after_feature_element(feature_element)
if @rerun
@file_names << feature_element.file_colon_line
@file_names << feature_element.location.to_s
@rerun = false
end
end
Expand All @@ -67,7 +67,7 @@ def after_feature_element(feature_element)
# @param [Cucumber::Ast::Background] background the feature background
# @param [String] file name and line number describing where the step is used
#
def step_name(keyword, step_match, status, source_indent, background, file_colon_line)
def step_name(keyword, step_match, status, source_indent, background, location)
if [:failed, :pending, :undefined].index(status)
@rerun = true
step_name = step_match.format_args(lambda { |param| "*#{ param }*" })
Expand Down

0 comments on commit 0549c1a

Please sign in to comment.