Commit c53cf518 authored by Keith Smiley's avatar Keith Smiley

Fixed tests for which

parent cbcb00b1
...@@ -144,20 +144,16 @@ module Pod ...@@ -144,20 +144,16 @@ module Pod
#-------------------------------------------------------------------------# #-------------------------------------------------------------------------#
describe "which subcommand" do describe "which subcommand" do
extend SpecHelper::TemporaryRepos
it "errors if a given podspec doesn't exist" do it "errors if a given podspec doesn't exist" do
e = lambda { command('spec', 'which', 'some_pod_that_doesnt_exist').run }.should.raise Informative e = lambda { command('spec', 'which', 'some_pod_that_doesnt_exist').run }.should.raise Informative
e.message.should.match /Unable to find a pod with/ e.message.should.match /Unable to find a pod with/
end end
it "prints the path of a given podspec" do it "prints the path of a given podspec" do
lambda { command('spec', 'which', 'kslabel').run } lambda { command('spec', 'which', 'AFNetworking').run }.should.not.raise
# text = "AFNetworking.podspec" text = "AFNetworking.podspec"
# UI.output.should.include text UI.output.should.include text.gsub(/\n/, '')
# output = UI.output
# puts UI.output
end end
it "complains provided spec name is ambigious" do it "complains provided spec name is ambigious" do
...@@ -188,7 +184,6 @@ module Pod ...@@ -188,7 +184,6 @@ module Pod
#output.gsub(/\n/,'').should.equsal text.gsub(/\n/,'') #output.gsub(/\n/,'').should.equsal text.gsub(/\n/,'')
UI.output.should.include text.gsub(/\n/,'') UI.output.should.include text.gsub(/\n/,'')
end 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