Commit e703252d authored by Eloy Durán's avatar Eloy Durán

[push] It's like I never did Ruby before.

parent d2f8cb19
...@@ -61,7 +61,6 @@ module Pod ...@@ -61,7 +61,6 @@ module Pod
# @return [void] Silently test the CocoaPods trunk service. # @return [void] Silently test the CocoaPods trunk service.
# #
def test_trunk def test_trunk
return if skip_test_trunk
return unless @repo == "master" return unless @repo == "master"
require 'rest' require 'rest'
base_url = 'https://trunk.cocoapods.org/api/v1' base_url = 'https://trunk.cocoapods.org/api/v1'
...@@ -73,7 +72,6 @@ module Pod ...@@ -73,7 +72,6 @@ module Pod
rescue Exception rescue Exception
# Nothing # Nothing
end end
attr_accessor :skip_test_trunk
# Performs a full lint against the podspecs. # Performs a full lint against the podspecs.
# #
......
...@@ -7,7 +7,7 @@ module Pod ...@@ -7,7 +7,7 @@ module Pod
# Don't test push the spec to the trunk app # Don't test push the spec to the trunk app
def command(*a) def command(*a)
super.tap { |cmd| cmd.send(:skip_test_trunk=, true) } super.tap { |cmd| cmd.stubs(:test_trunk) }
end end
before do before 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