diff options
author | Carl Lerche <carllerche@mac.com> | 2010-08-20 11:06:52 -0700 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2010-08-20 14:46:40 -0700 |
commit | 5215c390db05f980772c7c1a9b02924fdc20fcdb (patch) | |
tree | 33c3878702b7201d39ffcb8226c2e2f9b76df290 /spec/lock | |
parent | 405f586811974e3e310cd68770d2eb83b7a712c8 (diff) | |
download | bundler-5215c390db05f980772c7c1a9b02924fdc20fcdb.tar.gz |
Move the lockfile spec matchers to spec/support/matchers.rb
Diffstat (limited to 'spec/lock')
-rw-r--r-- | spec/lock/flex_spec.rb | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/spec/lock/flex_spec.rb b/spec/lock/flex_spec.rb index a1cd18858f..15507c1344 100644 --- a/spec/lock/flex_spec.rb +++ b/spec/lock/flex_spec.rb @@ -3,25 +3,6 @@ require "spec_helper" describe "the lockfile format" do include Bundler::GemHelpers - RSpec::Matchers.define :be_with_diff do |expected| - spaces = expected[/\A\s+/, 0] || "" - expected.gsub!(/^#{spaces}/, '') - - failure_message_for_should do |actual| - "The lockfile did not match.\n=== Expected:\n" << - expected << "\n=== Got:\n" << actual << "\n===========\n" - end - - match do |actual| - expected == actual - end - end - - def lockfile_should_be(expected) - lock = File.read(bundled_app("Gemfile.lock")) - lock.should be_with_diff(expected) - end - it "generates a simple lockfile for a single source, gem" do install_gemfile <<-G source "file://#{gem_repo1}" |