summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2010-11-12 23:17:17 -0600
committerAndre Arko <andre@arko.net>2010-11-13 01:14:43 -0600
commit70a377595991f7d7ce46a87384b9e17fb887bc0d (patch)
treeef36b9d9b5198ff9ccf10ef01ca9c4816ce33e61
parentf02fac9883ff4af3b3584b0190d20f310b26cd32 (diff)
downloadbundler-70a377595991f7d7ce46a87384b9e17fb887bc0d.tar.gz
fix the stubbed #build_gem to return a path like the real one does
-rw-r--r--spec/other/gem_helper_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/other/gem_helper_spec.rb b/spec/other/gem_helper_spec.rb
index 8016d954dc..1d05e8ea35 100644
--- a/spec/other/gem_helper_spec.rb
+++ b/spec/other/gem_helper_spec.rb
@@ -73,7 +73,9 @@ describe "Bundler::GemHelper tasks" do
@helper.should_receive(:build_gem) do
# write an invalid gem file, so we can simulate install failure...
FileUtils.mkdir_p(File.join(@app.to_s, 'pkg'))
- File.open("#{@app.to_s}/pkg/test-0.0.1.gem", 'w'){|f| f << "not actually a gem"}
+ path = "#{@app.to_s}/pkg/test-0.0.1.gem"
+ File.open(path, 'w'){|f| f << "not actually a gem"}
+ path
end
proc { @helper.install_gem }.should raise_error
end