Commit 4a0d6098 authored by Fabio Pelosin's avatar Fabio Pelosin

[Validator] Test that pods are built per platform

parent 5aada475
...@@ -82,6 +82,15 @@ module Pod ...@@ -82,6 +82,15 @@ module Pod
sut.validation_dir.should.exist sut.validation_dir.should.exist
end end
it "builds the pod per platform" do
file = write_podspec(stub_podspec)
sut = Validator.new(file)
sut.expects(:install_pod).twice
sut.expects(:build_pod).twice
sut.expects(:check_file_patterns).twice
sut.validate
end
it "uses the deployment target of the specification" do it "uses the deployment target of the specification" do
sut = Validator.new(podspec_path) sut = Validator.new(podspec_path)
podfile = sut.send(:podfile_from_spec, :ios, '5.0') podfile = sut.send(:podfile_from_spec, :ios, '5.0')
......
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