summaryrefslogtreecommitdiff
path: root/spec/update
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-04-04 22:23:44 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-04-11 13:25:59 +0200
commitb9baa34673b96419410bd7c61d379bc8c89d798e (patch)
treeacd392e65c87618a82afbd9d6051de4dddc6e387 /spec/update
parent4e96e9b7b921a2792f14e9127c7d9a0838832e57 (diff)
downloadbundler-b9baa34673b96419410bd7c61d379bc8c89d798e.tar.gz
Move on to bundler 3
* Drop bundler 1 stuff from tests. * Move all feature flags to bundler 3 (like they are in 2-0-stable) and get them tested.
Diffstat (limited to 'spec/update')
-rw-r--r--spec/update/git_spec.rb4
-rw-r--r--spec/update/redownload_spec.rb10
2 files changed, 2 insertions, 12 deletions
diff --git a/spec/update/git_spec.rb b/spec/update/git_spec.rb
index 1d5bce2758..4fe22269e2 100644
--- a/spec/update/git_spec.rb
+++ b/spec/update/git_spec.rb
@@ -299,7 +299,7 @@ RSpec.describe "bundle update" do
G
end
- it "the --source flag updates version of gems that were originally pulled in by the source", :bundler => "< 2" do
+ it "the --source flag updates version of gems that were originally pulled in by the source", :bundler => "< 3" do
spec_lines = lib_path("bar/foo.gemspec").read.split("\n")
spec_lines[5] = "s.version = '2.0'"
@@ -335,7 +335,7 @@ RSpec.describe "bundle update" do
G
end
- it "the --source flag updates version of gems that were originally pulled in by the source", :bundler => "2" do
+ it "the --source flag updates version of gems that were originally pulled in by the source", :bundler => "3" do
spec_lines = lib_path("bar/foo.gemspec").read.split("\n")
spec_lines[5] = "s.version = '2.0'"
diff --git a/spec/update/redownload_spec.rb b/spec/update/redownload_spec.rb
index b70c009248..39edac0902 100644
--- a/spec/update/redownload_spec.rb
+++ b/spec/update/redownload_spec.rb
@@ -18,16 +18,6 @@ RSpec.describe "bundle update" do
bundle! "update rack --no-color --force"
expect(err).to include "[DEPRECATED] The `--force` option has been renamed to `--redownload`"
end
-
- it "does not show a deprecation when single flag passed", :bundler => "< 2" do
- bundle! "update rack --force"
- expect(out).not_to include "[DEPRECATED] The `--force` option has been renamed to `--redownload`"
- end
-
- it "does not show a deprecation when multiple flags passed", :bundler => "< 2" do
- bundle! "update rack --no-color --force"
- expect(out).not_to include "[DEPRECATED] The `--force` option has been renamed to `--redownload`"
- end
end
describe "with --redownload" do