aboutsummaryrefslogtreecommitdiffstats
path: root/spec/bundler
diff options
context:
space:
mode:
Diffstat (limited to 'spec/bundler')
-rw-r--r--spec/bundler/environment_preserver_spec.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/spec/bundler/environment_preserver_spec.rb b/spec/bundler/environment_preserver_spec.rb
index 0c2913cc..496646d6 100644
--- a/spec/bundler/environment_preserver_spec.rb
+++ b/spec/bundler/environment_preserver_spec.rb
@@ -9,7 +9,7 @@ describe Bundler::EnvironmentPreserver do
subject { preserver.backup }
it "should create backup entries" do
- expect(subject["BUNDLE_ORIG_foo"]).to eq("my-foo")
+ expect(subject["BUNDLER_ORIG_foo"]).to eq("my-foo")
end
it "should keep the original entry" do
@@ -17,7 +17,7 @@ describe Bundler::EnvironmentPreserver do
end
it "should not create backup entries for unspecified keys" do
- expect(subject.key?("BUNDLE_ORIG_bar")).to eq(false)
+ expect(subject.key?("BUNDLER_ORIG_bar")).to eq(false)
end
it "should not affect the original env" do
@@ -29,15 +29,15 @@ describe Bundler::EnvironmentPreserver do
let(:env) { { "foo" => "" } }
it "should not create backup entries" do
- expect(subject.key?("BUNDLE_ORIG_foo")).to eq(false)
+ expect(subject.key?("BUNDLER_ORIG_foo")).to eq(false)
end
end
context "when an original key is set" do
- let(:env) { { "foo" => "my-foo", "BUNDLE_ORIG_foo" => "orig-foo" } }
+ let(:env) { { "foo" => "my-foo", "BUNDLER_ORIG_foo" => "orig-foo" } }
- it "should keep the original value in the BUNDLE_ORIG_ variable" do
- expect(subject["BUNDLE_ORIG_foo"]).to eq("orig-foo")
+ it "should keep the original value in the BUNDLER_ORIG_ variable" do
+ expect(subject["BUNDLER_ORIG_foo"]).to eq("orig-foo")
end
it "should keep the variable" do
@@ -50,14 +50,14 @@ describe Bundler::EnvironmentPreserver do
subject { preserver.restore }
context "when an original key is set" do
- let(:env) { { "foo" => "my-foo", "BUNDLE_ORIG_foo" => "orig-foo" } }
+ let(:env) { { "foo" => "my-foo", "BUNDLER_ORIG_foo" => "orig-foo" } }
it "should restore the original value" do
expect(subject["foo"]).to eq("orig-foo")
end
it "should delete the backup value" do
- expect(subject.key?("BUNDLE_ORIG_foo")).to eq(false)
+ expect(subject.key?("BUNDLER_ORIG_foo")).to eq(false)
end
end
@@ -70,7 +70,7 @@ describe Bundler::EnvironmentPreserver do
end
context "when the original key is empty" do
- let(:env) { { "foo" => "my-foo", "BUNDLE_ORIG_foo" => "" } }
+ let(:env) { { "foo" => "my-foo", "BUNDLER_ORIG_foo" => "" } }
it "should keep the current value" do
expect(subject["foo"]).to eq("my-foo")