Permalink
Browse files

test for 4e855b9

  • Loading branch information...
1 parent 4e855b9 commit b7ff1a13362c748853635439e1fa2d314f326f23 @hone hone committed May 25, 2012
Showing with 19 additions and 1 deletion.
  1. +19 −1 spec/other/config_spec.rb
@@ -95,6 +95,15 @@
run "puts Bundler.settings[:foo]"
out.should == "global"
end
+
+ it "doesn't blow up on zero byte .bundle/config" do
+ FileUtils.mkdir_p(File.join(Bundler.rubygems.user_home, ".bundle"))
+ FileUtils.touch(File.join(Bundler.rubygems.user_home, ".bundle/config"))
+
+ bundle :config, :exitstatus => true
+
+ exitstatus.should eq(0)
+ end
end
describe "local" do
@@ -134,5 +143,14 @@
run "puts Bundler.settings[:foo]"
out.should == "local"
end
+
+ it "doesn't blow up on zero byte .bundle/config" do
+ FileUtils.mkdir_p(bundled_app(".bundle"))
+ FileUtils.touch(bundled_app(".bundle/config"))
+
+ bundle :config, :exitstatus => true
+
+ exitstatus.should eq(0)
+ end
end
-end
+end

0 comments on commit b7ff1a1

Please sign in to comment.