Sha256: b1dbdc40b93e3a6286b96f7a6f1b01d452fb91dfdca3609b46d304d3ae484d2d

Contents?: true

Size: 491 Bytes

Versions: 5

Compression:

Stored size: 491 Bytes

Contents

module BundlerPreHelper
  def bundler
    fixture 'bundler-1.0.21.gem'
  end
  
  def bundler_pre
    fixture 'bundler-1.1.rc.gem'
  end
  
  def gem_install(path)
    run_simple("gem install #{path} --no-ri --no-rdoc")
  end

  def gem_uninstall(path)
    run_simple("gem uninstall #{path}")
  end
end

Before('@bundler-pre') do
  extend(BundlerPreHelper)
  gem_uninstall bundler
  gem_install bundler_pre
end

After('@bundler-pre') do
  gem_uninstall bundler_pre
  gem_install bundler
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cucumber-rails-1.4.0 features/support/bundler_pre_support.rb
cucumber-rails-1.3.1 features/support/bundler_pre_support.rb
cucumber-rails-1.3.0 features/support/bundler_pre_support.rb
cucumber-rails-1.2.1 features/support/bundler_pre_support.rb
cucumber-rails-1.2.0 features/support/bundler_pre_support.rb