blob: e720e2d9984afdb3396dbf3283bc7336386f2d6f [file] [log] [blame]
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
Pod::Command.version.should == VERSION
end
it 'reports the location of the AFNetworking spec' do
lambda { Pod::Command.run(%w(spec which AFNetworking)) }.should.not.raise
UI.output.should.include 'spec/fixtures/spec-repos/master/Specs/a/7/5/AFNetworking'
end
it "doesn't let you run as root" do
Process.stubs(:uid).returns(0)
lambda { Pod::Command.run(['--version']) }.should.raise CLAide::Help
end
end
end