[InstallationOptions] Default to not sharing schemes

parent 2bc3dabb
......@@ -106,7 +106,7 @@ module Pod
option :deterministic_uuids, true
option :integrate_targets, true
option :lock_pod_sources, true
option :share_schemes_for_development_pods, true
option :share_schemes_for_development_pods, false
module Mixin
module ClassMethods
......
......@@ -9,6 +9,7 @@ module Pod
'deterministic_uuids' => true,
'integrate_targets' => true,
'lock_pod_sources' => true,
'share_schemes_for_development_pods' => false,
}.each do |option, default|
it "includes `#{option}` defaulting to `#{default}`" do
Installer::InstallationOptions.defaults.fetch(option).should == default
......@@ -62,7 +63,7 @@ module Pod
'deterministic_uuids' => false,
'integrate_targets' => true,
'lock_pod_sources' => true,
'share_schemes_for_development_pods' => true,
'share_schemes_for_development_pods' => false,
}
end
......
......@@ -758,7 +758,16 @@ module Pod
@installer.sandbox.stubs(:development_pods).returns('BananaLib' => nil)
end
it 'shares by default' do
it 'does not share by default' do
Xcodeproj::XCScheme.expects(:share_scheme).never
@installer.send(:share_development_pod_schemes)
end
it 'can share all schemes' do
@installer.installation_options.
stubs(:share_schemes_for_development_pods).
returns(true)
Xcodeproj::XCScheme.expects(:share_scheme).with(
@installer.pods_project.path,
'BananaLib')
......
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