Commit 4d4e3a95 authored by Fabio Pelosin's avatar Fabio Pelosin

[Repo] Fix spelling mistake.

parent b5bdcea6
...@@ -69,8 +69,8 @@ module Pod ...@@ -69,8 +69,8 @@ module Pod
puts "\nCocoapods #{versions['last']} is available.\n".green if has_update(versions) puts "\nCocoapods #{versions['last']} is available.\n".green if has_update(versions)
end end
def self.is_compatible(name) def self.compatible?(name)
dir = Config.instance.repos_dir + name dir = Config.instance.repos_dir + name
versions = versions(dir) versions = versions(dir)
is_compatilbe(versions) is_compatilbe(versions)
end end
......
...@@ -82,11 +82,11 @@ describe "Pod::Command::Repo" do ...@@ -82,11 +82,11 @@ describe "Pod::Command::Repo" do
it "has a class method that returns if a repo is supported" do it "has a class method that returns if a repo is supported" do
yaml = YAML.dump({'min' => "999.0.0"}) yaml = YAML.dump({'min' => "999.0.0"})
File.open(versions_file, 'w') {|f| f.write(yaml) } File.open(versions_file, 'w') {|f| f.write(yaml) }
Pod::Command::Repo.is_compatible('repo1').should == false Pod::Command::Repo.compatible?('repo1').should == false
yaml = YAML.dump({'min' => "0.0.1"}) yaml = YAML.dump({'min' => "0.0.1"})
File.open(versions_file, 'w') {|f| f.write(yaml) } File.open(versions_file, 'w') {|f| f.write(yaml) }
Pod::Command::Repo.is_compatible('repo1').should == true Pod::Command::Repo.compatible?('repo1').should == true
end end
end end
end end
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