Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Fix some specs to not rely on remembering flags
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed Apr 4, 2019
1 parent 18f5751 commit 9e3876c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions spec/install/deploy_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@
rack
G

bundle! "config set deployment true"
bundle! "config set --local deployment true"
end

it "prevents the replace by default" do
Expand Down Expand Up @@ -376,7 +376,7 @@
it "remembers that the bundle is frozen at runtime" do
bundle! :lock

bundle! "config set deployment true"
bundle! "config set --local deployment true"

gemfile <<-G
source "file://#{gem_repo1}"
Expand Down Expand Up @@ -414,7 +414,7 @@
expect(out).to include("Updating files in vendor/cache")

simulate_new_machine
bundle! "config set deployment true"
bundle! "config set --local deployment true"
bundle! "install --verbose"
expect(out).not_to include("You are trying to install in deployment mode after changing your Gemfile")
expect(out).not_to include("You have added to the Gemfile")
Expand Down
3 changes: 2 additions & 1 deletion spec/realworld/edgecases_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ def rubygems_version(name, requirement)
gem 'rack', '1.0.1'
G

bundle! :install, forgotten_command_line_options(:path => "vendor/bundle")
bundle "config set --local path vendor/bundle"
bundle! :install
expect(err).not_to include("Could not find rake")
expect(last_command.stderr).to be_empty
end
Expand Down

0 comments on commit 9e3876c

Please sign in to comment.