Commit 6848caae authored by Eloy Duran's avatar Eloy Duran

Minor cleanup

parent 74844565
...@@ -66,7 +66,7 @@ module Pod ...@@ -66,7 +66,7 @@ module Pod
end end
def ==(other) def ==(other)
self.class === other && name == other.name self.class === other && @pod_dir == other.pod_dir
end end
def to_s def to_s
......
...@@ -15,12 +15,9 @@ describe "Pod::Source" do ...@@ -15,12 +15,9 @@ describe "Pod::Source" do
it "returns a specification set by name from any spec repo" do it "returns a specification set by name from any spec repo" do
set = Pod::Source.search(Pod::Dependency.new('Reachability')) set = Pod::Source.search(Pod::Dependency.new('Reachability'))
set.should.be.instance_of Pod::Specification::Set set.should == Pod::Spec::Set.by_pod_dir(config.repos_dir + 'repo1/Reachability')
set.pod_dir.should == config.repos_dir + 'repo1/Reachability'
set = Pod::Source.search(Pod::Dependency.new('JSONKit')) set = Pod::Source.search(Pod::Dependency.new('JSONKit'))
set.should.be.instance_of Pod::Specification::Set set.should == Pod::Spec::Set.by_pod_dir(config.repos_dir + 'repo2/JSONKit')
set.pod_dir.should == config.repos_dir + 'repo2/JSONKit'
end end
it "raises if a specification set can't be found" do it "raises if a specification set can't be found" do
......
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