diff --git a/lib/cocoapods-core/podfile.rb b/lib/cocoapods-core/podfile.rb index da115f269..c8412ca2e 100644 --- a/lib/cocoapods-core/podfile.rb +++ b/lib/cocoapods-core/podfile.rb @@ -99,12 +99,7 @@ def dependencies # @return [Array] all the specs source names. def sources - sources = get_hash_value('sources') - unless sources - return [default_source] - else - sources - end + get_hash_value('sources') end # @return [String] the path of the workspace if specified by the user. @@ -308,12 +303,6 @@ def self.from_hash(hash, path = nil) # @!group Private helpers - # @return [String] the default specs source name - # - def default_source - "master" - end - # @return [Hash] The hash which store the attributes of the Podfile. # attr_accessor :internal_hash diff --git a/spec/podfile_spec.rb b/spec/podfile_spec.rb index e637bbdf8..28a8f94b6 100644 --- a/spec/podfile_spec.rb +++ b/spec/podfile_spec.rb @@ -119,15 +119,6 @@ module Pod end describe "source" do - - it 'always has at least one source' do - Podfile.new {}.sources.should.include "master" - - Podfile.new do - source 'new_repo' - end.sources.should.include "new_repo" - end - it 'can have multiple sources' do Podfile.new do source 'new_repo_1'