Commit 266f42e1 authored by Eloy Durán's avatar Eloy Durán Committed by Samuel E. Giddins

[Analyzer] Cleanup and improve tests for lockfile checkout options.

parent d1d7fd8c
...@@ -64,9 +64,13 @@ module Pod ...@@ -64,9 +64,13 @@ module Pod
# @return [Lockfile] the manifest which contains the information about the # @return [Lockfile] the manifest which contains the information about the
# installed pods. # installed pods.
# #
attr_accessor :manifest
def manifest def manifest
@manifest ||= begin
Lockfile.from_file(manifest_path) if manifest_path.exist? Lockfile.from_file(manifest_path) if manifest_path.exist?
end end
end
# @return [Project] the Pods project. # @return [Project] the Pods project.
# #
......
...@@ -26,7 +26,9 @@ require 'bacon' ...@@ -26,7 +26,9 @@ require 'bacon'
require 'mocha-on-bacon' require 'mocha-on-bacon'
require 'pretty_bacon' require 'pretty_bacon'
require 'pathname' require 'pathname'
require 'active_support/core_ext/string/strip' require 'active_support/core_ext/string/strip'
require 'active_support/core_ext/object/deep_dup'
ROOT = Pathname.new(File.expand_path('../../', __FILE__)) ROOT = Pathname.new(File.expand_path('../../', __FILE__))
$:.unshift((ROOT + 'lib').to_s) $:.unshift((ROOT + 'lib').to_s)
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment