Sha256: c3505ec98bb94ea811da37b1e8f9e1798c612bb561f35f381744872639887ebe

Contents?: true

Size: 1.81 KB

Versions: 7

Compression:

Stored size: 1.81 KB

Contents

Feature: appraisals using an existing gemspec

Background:
  Given a directory named "gemspecced"
  When I cd to "gemspecced"
  And I write to "gemspecced.gemspec" with:
  """
  Gem::Specification.new do |s|
      s.name        = %q{gemspecced}
      s.version     = '0.1'
      s.summary     = %q{featureful!}

      s.add_runtime_dependency('mocha')
      s.add_development_dependency('factory_girl', '1.3.2')
  end
  """
  And a directory named "specdir"
  And I write to "specdir/gemspecced.gemspec" with:
  """
  Gem::Specification.new do |s|
      s.name        = %q{gemspecced}
      s.version     = '0.1'
      s.summary     = %q{featureful!}

      s.add_runtime_dependency('mocha')
      s.add_development_dependency('factory_girl', '1.3.0')
  end
  """
  And I write to "Appraisals" with:
  """
  appraise "stock" do
    gem "shoulda", "2.11.3"
  end
  """
  When I write to "Rakefile" with:
  """
  require 'rubygems'
  require 'bundler/setup'
  require 'appraisal'
  task :version do
    require 'factory_girl'
    puts "Loaded #{Factory::VERSION}"
  end
  """

@disable-bundler
Scenario: run a gem in the gemspec
  And I write to "Gemfile" with:
  """
  source "http://rubygems.org"
  gemspec
  """
  When I add "appraisal" from this project as a dependency
  When I successfully run `bundle exec rake appraisal:install --trace`
  When I run `bundle exec rake appraisal version --trace`
  Then the output should contain "Loaded 1.3.2"


@disable-bundler
Scenario: run a gem in the gemspec via path
  And I write to "Gemfile" with:
  """
  source "http://rubygems.org"
  gemspec :path => './specdir'
  """
  When I add "appraisal" from this project as a dependency
  When I successfully run `bundle exec rake appraisal:install --trace`
  When I run `bundle exec rake appraisal version --trace`
  Then the output should contain "Loaded 1.3.0"

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
appraisal-0.3.8 features/gemspec.feature
appraisal-0.3.7 features/gemspec.feature
appraisal-0.3.6 features/gemspec.feature
appraisal-0.3.5 features/gemspec.feature
appraisal-0.3.4 features/gemspec.feature
appraisal-0.3.3 features/gemspec.feature
appraisal-0.3.1 features/gemspec.feature