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

[Command::Init] Update specs for recent changes

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