Unverified Commit c5287090 authored by Felix Krause's avatar Felix Krause Committed by GitHub

Make rubocop happy with rules I don't fully agree with

parent 857fc956
......@@ -265,13 +265,13 @@ module Pod
end
it 'checks if the source URL is valid' do
Specification.any_instance.stubs(:source).returns({ :http => 'https://orta.io/package.zip' })
Specification.any_instance.stubs(:source).returns(:http => 'https://orta.io/package.zip')
@validator.validate
@validator.results.should.be.empty?
end
it "should fail validation if the source URL is not HTTPs encrypted" do
Specification.any_instance.stubs(:source).returns({ :http => 'http://orta.io/package.zip' })
it 'should fail validation if the source URL is not HTTPs encrypted' do
Specification.any_instance.stubs(:source).returns(:http => 'http://orta.io/package.zip')
@validator.validate
@validator.results.map(&:to_s).first.should.match /use the encrypted HTTPs protocol./
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