spec/integration_spec.rb in pessimize-0.4.0 vs spec/integration_spec.rb in pessimize-0.5.0
- old
+ new
@@ -23,11 +23,11 @@
it { should == 0 }
end
context "the Gemfile.backup" do
it "should be created" do
- File.exists?(tmp_path + 'Gemfile.backup').should be_true
+ File.exist?(tmp_path + 'Gemfile.backup').should be_truthy
end
it "should be the same as the original Gemfile" do
gemfile_backup_contents.should == gemfile
end
@@ -61,17 +61,17 @@
it { should == 0 }
end
context "the Gemfile.backup" do
it "should not exist" do
- File.exists?(tmp_path + 'Gemfile.backup').should be_false
+ File.exist?(tmp_path + 'Gemfile.backup').should be_falsey
end
end
context "the Gemfile.lock.backup" do
it "should not exist" do
- File.exists?(tmp_path + 'Gemfile.lock.backup').should be_false
+ File.exist?(tmp_path + 'Gemfile.lock.backup').should be_falsey
end
end
context "the Gemfile" do
subject { gemfile_contents }
@@ -559,16 +559,16 @@
remote: git://github.com/joonty/pessimize.git
revision: 40f6ec6c7483a453b72e09efbba0e0d7de3b37ab
specs:
pessimize (0.2.0)
bundler
- trollop
+ optimist
GEM
remote: https://rubygems.org/
specs:
json (1.8.0)
- trollop (2.1.2)
+ optimist (3.0.1)
sqlite3 (1.3.7)
EOD
result = <<-EOD
source "https://rubygems.org"