mirror of
https://github.com/zhigang1992/CocoaPods.git
synced 2026-04-27 00:07:12 +08:00
See #131, #191. - The installer is initialized with a resolver. The resolver is responsible of indicating which specs must be installed/reinstalled. - It was introduced a slight change in the format of the Podfile.lock. - The specification set was simplified to receive and handle Pod::Dependency instead of Pod::Specification. With this change it also appears to be more robust. A this stage it appears to be working. However the support, for external and head dependencies is weak.
23 lines
904 B
Ruby
23 lines
904 B
Ruby
require File.expand_path('../../../spec_helper', __FILE__)
|
|
|
|
describe Pod::Command::Outdated do
|
|
extend SpecHelper::Command
|
|
extend SpecHelper::TemporaryDirectory
|
|
extend SpecHelper::TemporaryRepos
|
|
|
|
it "tells the user that no Podfile was found in the current working dir" do
|
|
exception = lambda { run_command('outdated','--no-update') }.should.raise Pod::Informative
|
|
exception.message.should.include "No `Podfile' found in the current working directory."
|
|
end
|
|
|
|
it "tells the user that no Lockfile was found in the current working dir" do
|
|
file = temporary_directory + 'Podfile'
|
|
File.open(file, 'w') {|f| f.write('platform :ios') }
|
|
Dir.chdir(temporary_directory) do
|
|
exception = lambda { run_command('outdated','--no-update') }.should.raise Pod::Informative
|
|
exception.message.should.include "No `Podfile.lock' found in the current working directory"
|
|
end
|
|
end
|
|
end
|
|
|