Commit f72c0eb7 authored by Daniel Tomlinson's avatar Daniel Tomlinson

Add tests

parent 0d80c0d7
...@@ -301,6 +301,12 @@ module Pod ...@@ -301,6 +301,12 @@ module Pod
UI.warnings.should.match /RestKit \(<= 0.23.2\)/ UI.warnings.should.match /RestKit \(<= 0.23.2\)/
end end
it 'raises when specs have incompatible cocoapods requirements' do
analyzer = Pod::Installer::Analyzer.new(config.sandbox, @podfile, nil)
Specification.any_instance.stubs(:cocoapods_version).returns(Requirement.create '= 0.1.0')
should.raise(Informative) { analyzer.analyze }
end
#--------------------------------------# #--------------------------------------#
it 'computes the state of the Sandbox respect to the resolved dependencies' do it 'computes the state of the Sandbox respect to the resolved dependencies' do
...@@ -309,6 +315,9 @@ module Pod ...@@ -309,6 +315,9 @@ module Pod
state.added.sort.should == %w(AFNetworking JSONKit SVPullToRefresh libextobjc) state.added.sort.should == %w(AFNetworking JSONKit SVPullToRefresh libextobjc)
end end
#--------------------------------------#
#-------------------------------------------------------------------------# #-------------------------------------------------------------------------#
describe 'Private helpers' do describe 'Private helpers' do
......
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