aboutsummaryrefslogtreecommitdiffstats
path: root/spec/lock
diff options
context:
space:
mode:
authorzofrex <zofrex@gmail.com>2012-06-29 19:17:56 -0400
committerzofrex <zofrex@gmail.com>2012-06-29 19:17:56 -0400
commit336d89b420dc43f33b380d4532f1c5e11d41860c (patch)
treebf3bc1c639fbbc5545397b98132349a51b208daf /spec/lock
parentaccdd1cb8c4066b18dd9f51fdd294085bb455266 (diff)
downloadbundler-336d89b420dc43f33b380d4532f1c5e11d41860c.tar.gz
Issue #2000 Add test for conflict markers in Gemfile.lock
Diffstat (limited to 'spec/lock')
-rw-r--r--spec/lock/lockfile_spec.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/lock/lockfile_spec.rb b/spec/lock/lockfile_spec.rb
index 81c5119e..e2a5b646 100644
--- a/spec/lock/lockfile_spec.rb
+++ b/spec/lock/lockfile_spec.rb
@@ -806,4 +806,18 @@ describe "the lockfile format" do
end
end
end
+
+ it "refuses to install if Gemfile.lock contains conflict markers" do
+ lambda { Bundler::LockfileParser.new "<<<<<<<" }.
+ should raise_error Bundler::LockfileError
+
+ lambda { Bundler::LockfileParser.new ">>>>>>>" }.
+ should raise_error Bundler::LockfileError
+
+ lambda { Bundler::LockfileParser.new "=======" }.
+ should raise_error Bundler::LockfileError
+
+ lambda { Bundler::LockfileParser.new "|||||||" }.
+ should raise_error Bundler::LockfileError
+ end
end