summaryrefslogtreecommitdiff
path: root/spec/bundler/gem_helper_spec.rb
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2014-02-06 16:41:17 +0200
committerAndre Arko <andre@arko.net>2014-02-06 16:41:17 +0200
commitffbee489f6f4858c0dabac790e868b6bfca6a522 (patch)
tree6d55627b17156b4dc9056c30c48f28a436c75bcb /spec/bundler/gem_helper_spec.rb
parent4d62410a75aaa7c72d52a7666c9a041ccf1aa5a8 (diff)
downloadbundler-ffbee489f6f4858c0dabac790e868b6bfca6a522.tar.gz
fix RSpec 3 deprecations
Diffstat (limited to 'spec/bundler/gem_helper_spec.rb')
-rw-r--r--spec/bundler/gem_helper_spec.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/spec/bundler/gem_helper_spec.rb b/spec/bundler/gem_helper_spec.rb
index 3ecd930b24..791a78b3b5 100644
--- a/spec/bundler/gem_helper_spec.rb
+++ b/spec/bundler/gem_helper_spec.rb
@@ -146,7 +146,7 @@ describe Bundler::GemHelper do
context "when installation fails" do
it "raises an error with appropriate message" do
# create empty gem file in order to simulate install failure
- subject.stub(:build_gem) do
+ allow(subject).to receive(:build_gem) do
FileUtils.mkdir_p(app_gem_dir)
FileUtils.touch app_gem_path
app_gem_path
@@ -178,7 +178,10 @@ describe Bundler::GemHelper do
end
it "when there is no git remote" do
- Bundler.ui.stub(:confirm => nil, :error => nil) # silence messages
+ # silence messages
+ allow(Bundler.ui).to receive(:confirm)
+ allow(Bundler.ui).to receive(:error)
+
Dir.chdir(app_path) { `git commit -a -m "initial commit"` }
expect { subject.release_gem }.to raise_error
end