Commit 21966ee6 authored by Samuel E. Giddins's avatar Samuel E. Giddins

[InstallerSpec] Check for deprecation message when spec.deprecated = true

parent 129cd59f
......@@ -102,9 +102,13 @@ module Pod
spec = Spec.new
spec.name = 'RestKit'
spec.deprecated_in_favor_of = 'AFNetworking'
@installer.stubs(:root_specs).returns([spec])
spec_two = Spec.new
spec_two.name = 'BlocksKit'
spec_two.deprecated = true
@installer.stubs(:root_specs).returns([spec, spec_two])
@installer.send(:warn_for_deprecations)
UI.warnings.should.include 'deprecated in favor of AFNetworking'
UI.warnings.should.include 'BlocksKit has been deprecated'
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