Skip to content

Commit

Permalink
Add a helper to the_bundler to get a parsed lockfile
Browse files Browse the repository at this point in the history
  • Loading branch information
segiddins committed Aug 25, 2016
1 parent 46f375e commit 8ae471e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/support/the_bundle.rb
Expand Up @@ -27,5 +27,10 @@ def locked?
def lockfile
bundle_dir.join("Gemfile.lock")
end

def locked_gems
raise "Cannot read lockfile if it doesn't exist" unless locked?
Bundler::LockfileParser.new(lockfile.read)
end
end
end

0 comments on commit 8ae471e

Please sign in to comment.