Permalink
Browse files

Minor cleanup

  • Loading branch information...
alloy committed Sep 15, 2011
1 parent 7484456 commit 6848caae06e69d50b0537da9a103424124f0bc1b
Showing with 3 additions and 6 deletions.
  1. +1 −1 lib/cocoa_pods/specification/set.rb
  2. +2 −5 spec/unit/source_spec.rb
@@ -66,7 +66,7 @@ def required_version
end
def ==(other)
- self.class === other && name == other.name
+ self.class === other && @pod_dir == other.pod_dir
end
def to_s
View
@@ -15,12 +15,9 @@
it "returns a specification set by name from any spec repo" do
set = Pod::Source.search(Pod::Dependency.new('Reachability'))
- set.should.be.instance_of Pod::Specification::Set
- set.pod_dir.should == config.repos_dir + 'repo1/Reachability'
-
+ set.should == Pod::Spec::Set.by_pod_dir(config.repos_dir + 'repo1/Reachability')
set = Pod::Source.search(Pod::Dependency.new('JSONKit'))
- set.should.be.instance_of Pod::Specification::Set
- set.pod_dir.should == config.repos_dir + 'repo2/JSONKit'
+ set.should == Pod::Spec::Set.by_pod_dir(config.repos_dir + 'repo2/JSONKit')
end
it "raises if a specification set can't be found" do

0 comments on commit 6848caa

Please sign in to comment.