Skip to content

Commit

Permalink
Remove broken source tests
Browse files Browse the repository at this point in the history
Introduced in 212f3c0, unfortunately
testing this isn't possible because you can't commit a .git directory.
This means by luck the tests worked locally, and the `should return its
git url` test only worked because I personally checked out Core as
https://github.com/CocoaPods/Core since git inherits from parent
directories. This would be different for other users.

I'm removing these broken tests as I don't see any solution to fix them.
  • Loading branch information
kylef committed Oct 7, 2014
1 parent 872fb77 commit c83467a
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions spec/source_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,6 @@ module Pod
s3 = Source.new(Pathname.new 'private')
[s3, s1, s2].sort.should == [s1, s2, s3]
end

it 'should return its git url' do
@subject.url.should == 'https://github.com/CocoaPods/Core'
end

it 'should return a local git url when there is no remote' do
full_path = SpecHelper::Fixture::ROOT + 'spec-repos/local_repo/.git'
path = fixture('spec-repos/local_repo')
source = Source.new(path)
source.url.should == "file://#{full_path}"
end
end

#-------------------------------------------------------------------------#
Expand Down

0 comments on commit c83467a

Please sign in to comment.