Commit cc958fde authored by Fabio Pelosin's avatar Fabio Pelosin

[UserProjectIntegrator] Clean up.

parent 2421ef03
...@@ -3,24 +3,13 @@ require File.expand_path('../../spec_helper', __FILE__) ...@@ -3,24 +3,13 @@ require File.expand_path('../../spec_helper', __FILE__)
describe Pod::Installer::UserProjectIntegrator do describe Pod::Installer::UserProjectIntegrator do
extend SpecHelper::TemporaryDirectory extend SpecHelper::TemporaryDirectory
def integrate!
@integrator = Pod::Installer::UserProjectIntegrator.new(@podfile)
@integrator.integrate!
@sample_project = Xcodeproj::Project.new(@sample_project_path)
end
before do before do
config.silent = true sample_project_path = SpecHelper.create_sample_app_copy_from_fixture('SampleProject')
@sample_project_path = SpecHelper.create_sample_app_copy_from_fixture('SampleProject') config.project_root = sample_project_path.dirname
config.project_root = @sample_project_path.dirname
sample_project_path = @sample_project_path
@podfile = Pod::Podfile.new do @podfile = Pod::Podfile.new do
platform :ios platform :ios
xcodeproj sample_project_path, 'Test' => :debug xcodeproj sample_project_path, 'Test' => :debug
link_with 'SampleProject' # this is an app target! link_with 'SampleProject' # this is an app target!
pod 'JSONKit' pod 'JSONKit'
target :test_runner, :exclusive => true do target :test_runner, :exclusive => true do
...@@ -28,12 +17,10 @@ describe Pod::Installer::UserProjectIntegrator do ...@@ -28,12 +17,10 @@ describe Pod::Installer::UserProjectIntegrator do
pod 'Kiwi' pod 'Kiwi'
end end
end end
@sample_project_path = sample_project_path
@sample_project = Xcodeproj::Project.new(@sample_project_path) @integrator = Pod::Installer::UserProjectIntegrator.new(@podfile)
end @integrator.integrate!
@sample_project = Xcodeproj::Project.new(sample_project_path)
before do
integrate!
end end
it 'adds references to the Pods static libraries to the Frameworks group' do it 'adds references to the Pods static libraries to the Frameworks group' do
......
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