Skip to content

Commit

Permalink
Merge pull request #38 from todd-a-jacobs/feature/cucumber_3.x_support
Browse files Browse the repository at this point in the history
Feature: Cucumber 3.x Support
  • Loading branch information
rymai authored Apr 7, 2020
2 parents 987db92 + 3fb4971 commit ef062a4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 4 additions & 4 deletions guard-cucumber.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ Gem::Specification.new do |s|

s.required_rubygems_version = ">= 1.3.6"

s.add_dependency "guard-compat", "~> 1.0"
s.add_dependency "cucumber", "~> 2.0"
s.add_dependency "nenv", "~> 0.1"
s.add_dependency "cucumber", ">= 3.1"
s.add_dependency "nenv", ">= 0.1"

s.add_development_dependency "bundler", "~> 1.6"
s.add_development_dependency "guard-compat", ">= 1.0"
s.add_development_dependency "bundler", ">= 1.6"

s.files = `git ls-files -z`.split("\x0").select do |f|
/^lib\// =~ f
Expand Down
4 changes: 4 additions & 0 deletions lib/guard/cucumber/notification_formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ def icon_for(status)
end
end

def dump_count(count, what, state = nil)
[count, state, "#{what}#{count == 1 ? '' : 's'}"].compact.join(' ')
end

def status_to_message(status)
len = step_mother.steps(status).length
dump_count(len, "step", status.to_s)
Expand Down

0 comments on commit ef062a4

Please sign in to comment.