Commit 6eba8659 authored by Marcel Jackwerth's avatar Marcel Jackwerth

[Validator] Added regression test for `undefined method `spec_consumer'`

parent 53f5c31b
......@@ -64,6 +64,18 @@ module Pod
validator.results.map(&:to_s).first.should.match /source_files.*did not match/
validator.result_type.should == :error
end
it "validates a podspec with dependencies" do
podspec = stub_podspec(/s.name.*$/, 's.name = "ZKit"')
podspec.gsub! /s.requires_arc/, "s.dependency 'SBJson', '~> 3.2'\n s.requires_arc"
file = write_podspec(podspec, "ZKit.podspec")
spec = Specification.from_file(file)
validator = Validator.new(spec)
validator.validate
validator.results.map(&:to_s).first.should.match /should match the name/
validator.validated?.should.be.false
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