Commit ef7dd7e2 authored by Fabio Pelosin's avatar Fabio Pelosin

[Specs] Minor fix.

parent bf956df2
......@@ -13,8 +13,8 @@ describe "Pod::Command::Repo" do
@command.class.send(:is_compatilbe, versions).should == true
end
it "doesn't supports a repo with a compatible minimum version" do
versions = { 'min' => '0.7' }
it "doesn't supports a repo with a non compatible minimum version" do
versions = { 'min' => '0.999' }
@command.class.send(:is_compatilbe, versions).should == false
end
......@@ -28,13 +28,13 @@ describe "Pod::Command::Repo" do
@command.class.send(:is_compatilbe, versions).should == false
end
it "detects if an update is available" do
it "detects if no update is available" do
versions = { 'last' => '0.5' }
@command.class.send(:has_update, versions).should == false
end
it "detects if no update is available" do
versions = { 'last' => '0.7' }
it "detects if an update is available" do
versions = { 'last' => '0.999' }
@command.class.send(:has_update, versions).should == true
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