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

Commit

Permalink
Add spec for not updating gems with the same name as the source.
Browse files Browse the repository at this point in the history
When --source is provided.
  • Loading branch information
Caden Lovelace committed Aug 23, 2015
1 parent 311afaa commit a7caaa5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions spec/commands/update_spec.rb
Expand Up @@ -129,6 +129,19 @@
expect(exitstatus).not_to eq(0) if exitstatus
end
end

describe "with --source option" do
it "should not update gems not included in the source that happen to have the same name" do
install_gemfile <<-G
source "file://#{gem_repo2}"
gem "activesupport"
G
update_repo2 { build_gem "activesupport", "3.0" }

bundle "update --source activesupport"
should_not_be_installed "activesupport 3.0"
end
end
end

describe "bundle update in more complicated situations" do
Expand Down

0 comments on commit a7caaa5

Please sign in to comment.