Commit cc80b803 authored by Marius Rackwitz's avatar Marius Rackwitz

[Spec] Add test for Validator#_validate_modulemap

parent 7b400efb
...@@ -445,6 +445,16 @@ module Pod ...@@ -445,6 +445,16 @@ module Pod
validator.results.map(&:to_s).first.should.match /Unable to find a license file/ validator.results.map(&:to_s).first.should.match /Unable to find a license file/
validator.result_type.should == :warning validator.result_type.should == :warning
end end
it 'checks module_map must exist if specified' do
file = write_podspec(stub_podspec(/.*source_files.*/, '"source_files": "JSONKit.*", "module_map": "JSONKit.modulemap",'))
validator = Validator.new(file, SourcesManager.master.map(&:url))
validator.stubs(:build_pod)
validator.stubs(:validate_url)
validator.validate
validator.results.map(&:to_s).first.should.match /Unable to find the specified module map file./
validator.result_type.should == :error
end
end end
it 'validates a podspec with dependencies' do it 'validates a podspec with dependencies' 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