Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (18 sloc) 0.685 kb
When /^I add this library as a dependency$/ do
append_to_file('Gemfile', %{\ngem "diesel", :path => "#{PROJECT_ROOT}"\n})
end
Then /^at least one example should have run$/ do
steps %{Then the output should match /[1-9]0? examples?/}
end
When /^I add the "([^"]*)" as a diesel engine$/ do |engine_name|
steps %{When I add this library as a dependency}
append_to_file('Gemfile', <<-GEM)
gem "#{engine_name}", :path => "#{PROJECT_ROOT}/tmp/aruba/#{engine_name}"
GEM
end
When /^I comment out gem "([^"]*)" from my Gemfile$/ do |gem_name|
content = File.read('Gemfile')
File.open('Gemfile', 'w') do |f|
f.write content.sub(/gem ['"]#{gem_name}/, '#\1')
end
end
Jump to Line
Something went wrong with that request. Please try again.