diff options
author | Andre Arko <andre@arko.net> | 2010-11-12 23:17:17 -0600 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2010-11-13 01:14:43 -0600 |
commit | 70a377595991f7d7ce46a87384b9e17fb887bc0d (patch) | |
tree | ef36b9d9b5198ff9ccf10ef01ca9c4816ce33e61 | |
parent | f02fac9883ff4af3b3584b0190d20f310b26cd32 (diff) | |
download | bundler-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.rb | 4 |
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 |