Skip to content
This repository was archived by the owner on Jan 8, 2019. It is now read-only.

Commit 0c7ffdd

Browse files
committed
fix cucumber and aruba deprecation warnings
1 parent 4bda87a commit 0c7ffdd

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

Gemfile

+2
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ source "http://rubygems.org"
22

33
# Specify your gem's dependencies in git-gc-cron.gemspec
44
gemspec
5+
6+
gem "rake"

features/cli.feature

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Feature: CLI
88
And a checked out repo "repos1/def/xyz"
99
And a bare repo "repos2/ghi.git"
1010
And a bare repo "repos3/jkl.git"
11-
When I run "git-gc-cron repos1 repos2"
11+
When I run `git-gc-cron repos1 repos2`
1212
Then the repo "repos1/abc" should be packed
1313
And the repo "repos1/def/xyz" should be packed
1414
And the repo "repos2/ghi.git" should be packed
@@ -17,6 +17,6 @@ Feature: CLI
1717
Scenario: Verbose output
1818
Given a checked out repo "repos1/abc"
1919
And a checked out repo "repos1/def/xyz"
20-
When I run "git-gc-cron -v repos1"
20+
When I run `git-gc-cron -v repos1`
2121
Then the output should contain "repos1/abc"
2222
And the output should contain "repos1/def/xyz"

features/step_definitions/repos.rb

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
Given /^a checked out repo "([^"]*)"$/ do |path|
1+
Given(/^a checked out repo "([^"]*)"$/) do |path|
22
dirs << path
33
run "git init -q"
44
dirs.pop
55
end
66

7-
Given /^a bare repo "([^"]*)"$/ do |path|
7+
Given(/^a bare repo "([^"]*)"$/) do |path|
88
dirs << path
99
run "git init --bare -q"
1010
dirs.pop
1111
end
1212

13-
Then /^the repo "([^"]*)" should be packed$/ do |path|
13+
Then(/^the repo "([^"]*)" should be packed$/) do |path|
1414
path << "/.git" unless path =~ /\.git$/
15-
Then %|a file named "#{path}/objects/info/packs" should exist|
15+
step %|a file named "#{path}/objects/info/packs" should exist|
1616
end
1717

18-
Then /^the repo "([^"]*)" should not be packed$/ do |path|
18+
Then(/^the repo "([^"]*)" should not be packed$/) do |path|
1919
path << "/.git" unless path =~ /\.git$/
20-
Then %|a file named "#{path}/objects/info/packs" should not exist|
20+
step %|a file named "#{path}/objects/info/packs" should not exist|
2121
end

0 commit comments

Comments
 (0)