Commit 4fc49822 authored by Samuel Giddins's avatar Samuel Giddins

Update for new Xcodeproj::Plist module API

parent 13747538
......@@ -6,7 +6,7 @@ module Pod
end
def save_as(path)
Xcodeproj::PlistHelper.write(plist, path)
Xcodeproj::Plist.write_to_path(plist, path)
end
def plist
......
......@@ -54,7 +54,7 @@ describe Pod::Generator::Plist do
basepath = config.sandbox.root + 'Pods-acknowledgements'
given_path = @generator.class.path_from_basepath(basepath)
expected_path = config.sandbox.root + 'Pods-acknowledgements.plist'
Xcodeproj::PlistHelper.expects(:write).with(equals(@generator.plist), equals(expected_path))
Xcodeproj::Plist.expects(:write_to_path).with(equals(@generator.plist), equals(expected_path))
@generator.save_as(given_path)
end
end
......@@ -69,7 +69,7 @@ module Pod
generator = Generator::InfoPlistFile.new(mock('Target', :platform => stub(:name => :ios)))
file = temporary_directory + 'Info.plist'
generator.save_as(file)
Xcodeproj::PlistHelper.read(file).should == {
Xcodeproj::Plist.read_from_path(file).should == {
'CFBundleDevelopmentRegion' => 'en',
'CFBundleExecutable' => '${EXECUTABLE_NAME}',
'CFBundleIdentifier' => '${PRODUCT_BUNDLE_IDENTIFIER}',
......@@ -89,7 +89,7 @@ module Pod
generator = Generator::InfoPlistFile.new(pod_target)
file = temporary_directory + 'Info.plist'
generator.save_as(file)
Xcodeproj::PlistHelper.read(file)['UIRequiredDeviceCapabilities'].should == %w(arm64)
Xcodeproj::Plist.read_from_path(file)['UIRequiredDeviceCapabilities'].should == %w(arm64)
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