diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-06-19 15:49:39 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-07-10 12:08:14 +0200 |
commit | 785c7af1f332456be94e915ce514f7c9455de8e4 (patch) | |
tree | 694a2c7a90d33b9e0129553a69bd5e1fadf2e8f0 | |
parent | 60d720eb065cfb0a87c3db89ba471739d5f9386c (diff) | |
download | bundler-785c7af1f332456be94e915ce514f7c9455de8e4.tar.gz |
Refactor some specs
-rw-r--r-- | spec/commands/lock_spec.rb | 4 | ||||
-rw-r--r-- | spec/install/gemfile/platform_spec.rb | 14 |
2 files changed, 9 insertions, 9 deletions
diff --git a/spec/commands/lock_spec.rb b/spec/commands/lock_spec.rb index 5735b6c060..1d9813a835 100644 --- a/spec/commands/lock_spec.rb +++ b/spec/commands/lock_spec.rb @@ -284,7 +284,7 @@ RSpec.describe "bundle lock" do simulate_platform(mingw) { bundle! :lock } - expect(the_bundle.lockfile).to read_as(strip_whitespace(<<-G)) + lockfile_should_be <<-G GEM remote: #{file_uri_for(gem_repo4)}/ specs: @@ -309,7 +309,7 @@ RSpec.describe "bundle lock" do simulate_platform(rb) { bundle! :lock } - expect(the_bundle.lockfile).to read_as(strip_whitespace(<<-G)) + lockfile_should_be <<-G GEM remote: #{file_uri_for(gem_repo4)}/ specs: diff --git a/spec/install/gemfile/platform_spec.rb b/spec/install/gemfile/platform_spec.rb index c389c71032..c096531398 100644 --- a/spec/install/gemfile/platform_spec.rb +++ b/spec/install/gemfile/platform_spec.rb @@ -102,7 +102,7 @@ RSpec.describe "bundle install across platforms" do gem "pry" G - expect(the_bundle.lockfile).to read_as strip_whitespace(<<-L) + lockfile_should_be <<-L GEM remote: #{file_uri_for(gem_repo4)}/ specs: @@ -160,7 +160,7 @@ RSpec.describe "bundle install across platforms" do #{Bundler::VERSION} L - expect(the_bundle.lockfile).to read_as good_lockfile + lockfile_should_be good_lockfile bad_lockfile = strip_whitespace <<-L GEM @@ -196,23 +196,23 @@ RSpec.describe "bundle install across platforms" do aggregate_failures do lockfile bad_lockfile bundle! :install - expect(the_bundle.lockfile).to read_as good_lockfile + lockfile_should_be good_lockfile lockfile bad_lockfile bundle! :update, :all => true - expect(the_bundle.lockfile).to read_as good_lockfile + lockfile_should_be good_lockfile lockfile bad_lockfile bundle! "update ffi" - expect(the_bundle.lockfile).to read_as good_lockfile + lockfile_should_be good_lockfile lockfile bad_lockfile bundle! "update empyrean" - expect(the_bundle.lockfile).to read_as good_lockfile + lockfile_should_be good_lockfile lockfile bad_lockfile bundle! :lock - expect(the_bundle.lockfile).to read_as good_lockfile + lockfile_should_be good_lockfile end end |