spec/integration_spec.rb in pessimize-0.1.0 vs spec/integration_spec.rb in pessimize-0.2.0

- old
+ new

@@ -10,17 +10,17 @@ run(cli_args) end context "after execution" do - context "the stderr" do + context "the stderr", exclude_platform: :java do subject { stderr } it { should == "" } end # exclude from jruby - context "the return code", platform: :jruby do + context "the return code", exclude_platform: :java do subject { $?.exitstatus } it { should == 0 } end context "the Gemfile.backup" do @@ -54,11 +54,11 @@ subject { stderr } it { should == "" } end # exclude from jruby - context "the return code", platform: :jruby do + context "the return code", exclude_platform: :java do subject { $?.exitstatus } it { should == 0 } end context "the Gemfile.backup" do @@ -238,13 +238,12 @@ rake (10.0.4) EOD result = <<-EOD source "https://rubygems.org" - -gem "json", "~> 1.8" -gem "rake", "~> 10.0" +gem 'json', "~> 1.8" +gem 'rake', "~> 10.0" EOD it_behaves_like "a working pessimizer", gemfile, lockfile, result end @@ -273,21 +272,20 @@ sqlite3 (1.3.7) EOD result = <<-EOD source "https://rubygems.org" +gem 'json', "~> 1.8" +gem 'rake', "~> 10.0" group :development do - gem "sqlite3", "~> 1.3" + gem 'sqlite3', '~> 1.3' end group :production do - gem "pg", "~> 0.15" + gem 'pg', '~> 0.15', '<= 0.15.2' end - -gem "json", "~> 1.8" -gem "rake", "~> 10.0" EOD it_behaves_like "a working pessimizer", gemfile, lockfile, result end @@ -311,21 +309,16 @@ sqlite3 (1.3.7) EOD result = <<-EOD source "https://rubygems.org" +gem 'json', "~> 1.8" +gem 'rake', "~> 10.0" -group :development do - gem "sqlite3", "~> 1.3" +group :development, :test do + gem 'sqlite3', '~> 1.3' end - -group :test do - gem "sqlite3", "~> 1.3" -end - -gem "json", "~> 1.8" -gem "rake", "~> 10.0" EOD it_behaves_like "a working pessimizer", gemfile, lockfile, result end @@ -349,21 +342,16 @@ sqlite3 (1.3.7) EOD result = <<-EOD source "https://rubygems.org" +gem 'json', "~> 1.8" +gem 'rake', "~> 10.0" -group :development do - gem "sqlite3", "~> 1.3" +group [:development, :test] do + gem 'sqlite3', '~> 1.3' end - -group :test do - gem "sqlite3", "~> 1.3" -end - -gem "json", "~> 1.8" -gem "rake", "~> 10.0" EOD it_behaves_like "a working pessimizer", gemfile, lockfile, result end @@ -381,12 +369,11 @@ json (1.8.0) EOD result = <<-EOD source "https://rubygems.org" -source "https://somewhereelse.com" - +source 'https://somewhereelse.com' EOD it_behaves_like "a working pessimizer", gemfile, lockfile, result end @@ -428,13 +415,13 @@ kaminari (0.14.1) EOD result = <<-EOD source "https://somewhere-else.org" +gem 'metric_fu', :git => 'https://github.com/joonty/metric_fu.git', :branch => 'master' -gem "metric_fu", {:git=>"https://github.com/joonty/metric_fu.git", :branch=>"master"} -gem "kaminari", "~> 0.14", {:require=>false} +gem "kaminari", "~> 0.14", :require => false EOD it_behaves_like "a working pessimizer", gemfile, lockfile, result end @@ -476,13 +463,13 @@ kaminari (0.14.1) EOD result = <<-EOD source "https://somewhere-else.org" +gem 'metric_fu', :git => 'https://github.com/joonty/metric_fu.git', :branch => 'master' -gem "metric_fu", {:git=>"https://github.com/joonty/metric_fu.git", :branch=>"master"} -gem "kaminari", "~> 0.14", {:require=>false} +gem "kaminari", "~> 0.14", :require => false EOD it_behaves_like "a working pessimizer", gemfile, lockfile, result end @@ -506,21 +493,16 @@ sqlite3 (1.3.7) EOD result = <<-EOD source "https://rubygems.org" +gem 'json', "~> 1.8.0" +gem 'rake', "~> 10.0.4" -group :development do - gem "sqlite3", "~> 1.3.7" +group :development, :test do + gem 'sqlite3', '~> 1.3.7' end - -group :test do - gem "sqlite3", "~> 1.3.7" -end - -gem "json", "~> 1.8.0" -gem "rake", "~> 10.0.4" EOD it_behaves_like "a working pessimizer", gemfile, lockfile, result, '-c patch' end @@ -544,20 +526,15 @@ sqlite3 (1.3.7) EOD result = <<-EOD source "https://rubygems.org" +gem 'json', "~> 1.8" +gem 'rake', "~> 10.0" -group :development do - gem "sqlite3", "~> 1.3" +group :development, :test do + gem 'sqlite3', '~> 1.3' end - -group :test do - gem "sqlite3", "~> 1.3" -end - -gem "json", "~> 1.8" -gem "rake", "~> 10.0" EOD it_behaves_like "a working pessimizer without backups", gemfile, lockfile, result, '--no-backup' end end