diff options
author | Terence Lee <hone02@gmail.com> | 2010-11-13 17:46:17 -0600 |
---|---|---|
committer | Terence Lee <hone02@gmail.com> | 2010-11-13 17:46:17 -0600 |
commit | 3a8e46a07c669ed9887c8b5b0cdda06f7c9ab24f (patch) | |
tree | 7caa2b51fedeb6d6c1b8d0a1d0524bf58ef4bedc /spec/bundler/lockfile_parser_spec.rb | |
parent | 7bd5ae288625dffa9a3e4aa03a3e28affed6af92 (diff) | |
download | bundler-3a8e46a07c669ed9887c8b5b0cdda06f7c9ab24f.tar.gz |
Addendum to #837, add unit test for Bundler::LockfileParser
Diffstat (limited to 'spec/bundler/lockfile_parser_spec.rb')
-rw-r--r-- | spec/bundler/lockfile_parser_spec.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/spec/bundler/lockfile_parser_spec.rb b/spec/bundler/lockfile_parser_spec.rb new file mode 100644 index 0000000000..0ff5425e71 --- /dev/null +++ b/spec/bundler/lockfile_parser_spec.rb @@ -0,0 +1,21 @@ +require "spec_helper" + +describe Bundler::LockfileParser do + include Bundler::GemHelpers + + let(:gemfile_string) do + <<-G +source "file://#{gem_repo1}" + +gem "rack" + G + end + + before { install_gemfile gemfile_string } + + subject { Bundler::LockfileParser.new(File.read(bundled_app("Gemfile.lock"))) } + + it "parses the bundler version" do + subject.metadata["version"].should == Bundler::VERSION + end +end |