Sha256: ea294ebe5f2af25f68acc2a7df541c0fc45768901ae2d7bb1e5293badada6823

Contents?: true

Size: 485 Bytes

Versions: 8

Compression:

Stored size: 485 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.gsub!(/^.*gem 'turn'.*\n/, '')
    File.open('Gemfile', 'w') { |file| file.write(content) }
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
clearance-1.5.1 features/step_definitions/gem_file_steps.rb
clearance-1.5.0 features/step_definitions/gem_file_steps.rb
clearance-1.4.3 features/step_definitions/gem_file_steps.rb
clearance-1.4.2 features/step_definitions/gem_file_steps.rb
clearance-1.4.1 features/step_definitions/gem_file_steps.rb
clearance-1.4.0 features/step_definitions/gem_file_steps.rb
clearance-1.3.0 features/step_definitions/gem_file_steps.rb
clearance-1.2.1 features/step_definitions/gem_file_steps.rb