Commit 3feeaf38 authored by Fabio Pelosin's avatar Fabio Pelosin

[Command::Init] Update specs for recent changes

parent bfe37a1d
...@@ -17,7 +17,7 @@ GIT ...@@ -17,7 +17,7 @@ GIT
GIT GIT
remote: https://github.com/CocoaPods/Xcodeproj.git remote: https://github.com/CocoaPods/Xcodeproj.git
revision: e2a6fb7466b26c3628c726271be60700bc635a62 revision: 9d2f8cef72466cb3f155a9a5a3cfb12c94802656
branch: master branch: master
specs: specs:
xcodeproj (0.9.0) xcodeproj (0.9.0)
......
...@@ -73,13 +73,14 @@ module Pod ...@@ -73,13 +73,14 @@ module Pod
open(config.default_podfile_path, 'w') { |f| f << "pod 'AFNetworking'" } open(config.default_podfile_path, 'w') { |f| f << "pod 'AFNetworking'" }
Xcodeproj::Project.new.save_as(temporary_directory + 'test.xcodeproj') project = Xcodeproj::Project.new
project.new_target(:application, 'AppA', :ios)
project.save_as(temporary_directory + 'test.xcodeproj')
run_command('init') run_command('init')
config.podfile.nil?.should == false dependencies = config.podfile.target_definitions["AppA"].dependencies
config.podfile.dependencies.length.should == 1 dependencies.map(&:name).should == ["AFNetworking"]
config.podfile.dependencies.first.name.should == "AFNetworking"
end end
end end
...@@ -97,9 +98,8 @@ module Pod ...@@ -97,9 +98,8 @@ module Pod
run_command('init') run_command('init')
config.podfile.nil?.should == false dependencies = config.podfile.target_definitions["AppTests"].dependencies
config.podfile.dependencies.length.should == 1 dependencies.map(&:name).should == ["Kiwi"]
config.podfile.dependencies.first.name.should == "Kiwi"
end end
end end
......
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