Permalink
Browse files

Add integration steps for adding gem entry pointing to git repository…

… in Gemfile
  • Loading branch information...
1 parent eb18584 commit ee28140850bc8b260d8772410525fb3be92ee33e @sikachu sikachu committed Jun 10, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/diesel/testing/integration.rb
@@ -8,3 +8,6 @@
append_to_file('Gemfile', %{\ngem "#{gem_name}", :path => "../../.."\n})
end
+When /^I add the "([^"]*)" gem from git "([^"]*)"(?: on branch "([^"]*)")?$/ do |gem_name, git, branch|
+ append_to_file('Gemfile', %{\ngem "#{gem_name}", :git => "#{git}"#{ %{, :branch => "#{branch}"} if branch}})
+end

0 comments on commit ee28140

Please sign in to comment.