Sha256: 0c06529b6453a84275df43eba33770ef1ea61ff5eaeb413f6fa0116a12f3e8ef
Contents?: true
Size: 491 Bytes
Versions: 3
Compression:
Stored size: 491 Bytes
Contents
When /^I add the "([^"]*)" gem$/ do |gem_name| append_to_file('Gemfile', %{\ngem "#{gem_name}"\n}) end When /^I add the "([^"]*)" gem from this project$/ do |gem_name| append_to_file('Gemfile', %{\ngem "#{gem_name}", path: "../../.."\n}) end When /^I remove the "([^"]*)" gem from this project$/ do |gem_name| in_current_dir do content = File.read('Gemfile') content.sub!(/^.*gem '#{gem_name}'.*\n/, "") File.open('Gemfile', 'w') { |file| file.write(content) } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
clearance-1.7.0 | features/step_definitions/gem_file_steps.rb |
clearance-1.6.1 | features/step_definitions/gem_file_steps.rb |
clearance-1.6.0 | features/step_definitions/gem_file_steps.rb |