Commit 0f5c9894 authored by Eloy Durán's avatar Eloy Durán

Merge branch 'newcommandspec' of https://github.com/carsonmcdonald/CocoaPods…

Merge branch 'newcommandspec' of https://github.com/carsonmcdonald/CocoaPods into carsonmcdonald-newcommandspec

Conflicts:
	spec/spec_helper/user_interface.rb
parents c21203aa 4412dac4
...@@ -45,8 +45,8 @@ module Pod ...@@ -45,8 +45,8 @@ module Pod
def self.run(argv) def self.run(argv)
argv = CLAide::ARGV.new(argv) argv = CLAide::ARGV.new(argv)
if argv.flag?('version') if argv.flag?('version')
puts VERSION UI.puts VERSION
exit!(0) exit 0
end end
super(argv) super(argv)
UI.print_warnings UI.print_warnings
......
require File.expand_path('../../spec_helper', __FILE__)
module Pod
describe Command do
extend SpecHelper::Command
it "displays the current version number with the --version flag" do
lambda { Pod::Command.run(['--version']) }.should.raise SystemExit
UI.output.should.include VERSION
end
it "reports the location of the AFNetworking spec" do
lambda { Pod::Command.run(['spec', 'which', 'AFNetworking']) }.should.not.raise
UI.output.should.include 'spec/fixtures/spec-repos/master/AFNetworking'
end
end
end
...@@ -31,6 +31,9 @@ module Pod ...@@ -31,6 +31,9 @@ module Pod
def gets def gets
@next_input @next_input
end end
def print_warnings
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