features/step_definitions/check_steps.rb in bard-0.5.1 vs features/step_definitions/check_steps.rb in bard-0.5.2
- old
+ new
@@ -38,9 +38,15 @@
Given /^the submodule is missing$/ do
type "rm -rf submodule"
type "mkdir submodule"
end
+Given /^the submodule has a detached head$/ do
+ Dir.chdir "submodule" do
+ type "git checkout `git rev-parse HEAD`"
+ end
+end
+
Given /^my "([^\"]*)" environment variable is "([^\"]*)"$/ do |key, value|
@env ||= Hash.new
@env[key] = value
end