This repository has been archived by the owner on Apr 14, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
82 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,33 @@ | ||
require "spec_helper" | ||
|
||
describe "path sources" do | ||
describe "bundle update --source" do | ||
it "shows the previous version of the gem when updated from path source" do | ||
describe "bundle update" do | ||
describe "path sources" do | ||
it "shows the summary of the using gems" do | ||
build_lib "activesupport", "2.3.5", :path => lib_path("rails/activesupport") | ||
|
||
install_gemfile <<-G | ||
gem "activesupport", :path => "#{lib_path("rails/activesupport")}" | ||
gem "activesupport", :path => "#{lib_path("rails/activesupport")}" | ||
G | ||
|
||
build_lib "activesupport", "3.0", :path => lib_path("rails/activesupport") | ||
|
||
bundle "update --source activesupport" | ||
expect(out).to include("Using activesupport 3.0 (was 2.3.5) from source at #{lib_path("rails/activesupport")}") | ||
expect(out).to include("Using 2 already installed gems") | ||
end | ||
|
||
describe "with --verbose option" do | ||
it "shows the previous version of the gem" do | ||
build_lib "activesupport", "2.3.5", :path => lib_path("rails/activesupport") | ||
|
||
install_gemfile <<-G | ||
gem "activesupport", :path => "#{lib_path("rails/activesupport")}" | ||
G | ||
|
||
build_lib "activesupport", "3.0", :path => lib_path("rails/activesupport") | ||
|
||
bundle "update --source activesupport --verbose" | ||
expect(out).to include("Using activesupport 3.0 (was 2.3.5) from source at #{lib_path("rails/activesupport")}") | ||
end | ||
end | ||
end | ||
end |