spec/command/subspecs_spec.rb in cocoapods-packager-1.3.0 vs spec/command/subspecs_spec.rb in cocoapods-packager-1.4.0
- old
+ new
@@ -6,19 +6,19 @@
after do
Dir.glob("KFData-*").each { |dir| Pathname.new(dir).rmtree }
end
it 'can package a single subspec' do
- SourcesManager.stubs(:search).returns(nil)
+ Pod::Config.instance.sources_manager.stubs(:search).returns(nil)
command = Command.parse(%w{ package spec/fixtures/KFData.podspec --subspecs=Core})
command.run
true.should == true # To make the test pass without any shoulds
end
it 'can package a list of subspecs' do
- SourcesManager.stubs(:search).returns(nil)
+ Pod::Config.instance.sources_manager.stubs(:search).returns(nil)
command = Command.parse(%w{ package spec/fixtures/KFData.podspec --subspecs=Core,Compatibility})
command.run
true.should == true # To make the test pass without any shoulds