Commit 62cc825b authored by Fabio Pelosin's avatar Fabio Pelosin

[Resolver] Clean-up and organize specs

parent 6fea5d49
...@@ -195,7 +195,10 @@ module Pod ...@@ -195,7 +195,10 @@ module Pod
end end
end end
# assumes that there are pods for AFNetworking at both version 1.0 and 1.0RC3 #-------------------------------------------------------------------------#
describe "Pre-release versions" do
it "resolves explicitly requested pre-release versions" do it "resolves explicitly requested pre-release versions" do
@podfile = Podfile.new do @podfile = Podfile.new do
platform :ios, '6.0' platform :ios, '6.0'
...@@ -243,7 +246,6 @@ module Pod ...@@ -243,7 +246,6 @@ module Pod
specs.should == ["AFNetworking (0.10.1)"] specs.should == ["AFNetworking (0.10.1)"]
end end
# assumes that there are pods for AFNetworking at both version 1.0 and 1.0RC3
it "does not resolve to a pre-release version implicitly when using <=" do it "does not resolve to a pre-release version implicitly when using <=" do
@podfile = Podfile.new do @podfile = Podfile.new do
platform :ios, '6.0' platform :ios, '6.0'
...@@ -256,7 +258,6 @@ module Pod ...@@ -256,7 +258,6 @@ module Pod
specs.should == ["AFNetworking (1.0)"] specs.should == ["AFNetworking (1.0)"]
end end
# assumes that there are pods for AFNetworking at versions 1.0, 1.0RC3 and 1.2.0
it "does not resolve to a pre-release version implicitly when using >" do it "does not resolve to a pre-release version implicitly when using >" do
@podfile = Podfile.new do @podfile = Podfile.new do
platform :ios, '6.0' platform :ios, '6.0'
...@@ -281,7 +282,6 @@ module Pod ...@@ -281,7 +282,6 @@ module Pod
specs.should == ["AFNetworking (1.2.1)"] specs.should == ["AFNetworking (1.2.1)"]
end end
# assumes that there are pods for AFNetworking at versions 1.0, 1.0RC3 and 1.2.0
it "does not resolve to a pre-release version implicitly when using ~>" do it "does not resolve to a pre-release version implicitly when using ~>" do
@podfile = Podfile.new do @podfile = Podfile.new do
platform :ios, '6.0' platform :ios, '6.0'
...@@ -293,8 +293,6 @@ module Pod ...@@ -293,8 +293,6 @@ module Pod
specs.should != ["AFNetworking (1.0RC3)"] specs.should != ["AFNetworking (1.0RC3)"]
specs.should == ["AFNetworking (1.2.1)"] specs.should == ["AFNetworking (1.2.1)"]
end 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