features/step_definitions/repos.rb in git-gc-cron-0.0.3 vs features/step_definitions/repos.rb in git-gc-cron-0.0.4
- old
+ new
@@ -1,21 +1,21 @@
-Given /^a checked out repo "([^"]*)"$/ do |path|
+Given(/^a checked out repo "([^"]*)"$/) do |path|
dirs << path
run "git init -q"
dirs.pop
end
-Given /^a bare repo "([^"]*)"$/ do |path|
+Given(/^a bare repo "([^"]*)"$/) do |path|
dirs << path
run "git init --bare -q"
dirs.pop
end
-Then /^the repo "([^"]*)" should be packed$/ do |path|
+Then(/^the repo "([^"]*)" should be packed$/) do |path|
path << "/.git" unless path =~ /\.git$/
- Then %|a file named "#{path}/objects/info/packs" should exist|
+ step %|a file named "#{path}/objects/info/packs" should exist|
end
-Then /^the repo "([^"]*)" should not be packed$/ do |path|
+Then(/^the repo "([^"]*)" should not be packed$/) do |path|
path << "/.git" unless path =~ /\.git$/
- Then %|a file named "#{path}/objects/info/packs" should not exist|
+ step %|a file named "#{path}/objects/info/packs" should not exist|
end