Commit aa7f0a50 authored by Carson McDonald's avatar Carson McDonald

Add more test coverage for the spec cat command.

parent 47642ca3
...@@ -205,6 +205,17 @@ module Pod ...@@ -205,6 +205,17 @@ module Pod
describe Command::Spec::Cat do describe Command::Spec::Cat do
it_should_check_for_existence("cat") it_should_check_for_existence("cat")
it_should_check_for_ambiguity("cat") it_should_check_for_ambiguity("cat")
it "cats the given podspec" do
lambda { command('spec', 'cat', 'AFNetworking').run }.should.not.raise
UI.output.should.include fixture('spec-repos/master/AFNetworking/1.2.0/AFNetworking.podspec').read
end
it "cats the first podspec from all podspecs" do
STDIN = StringIO.new("1\n", 'r')
run_command('spec', 'cat', '--show-all', 'AFNetworking')
UI.output.should.include fixture('spec-repos/master/AFNetworking/1.2.0/AFNetworking.podspec').read
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