spec/spec_helper.rb in cocoapods-plugins-0.3.2 vs spec/spec_helper.rb in cocoapods-plugins-0.4.0

- old
+ new

@@ -1,15 +1,13 @@ # Set up coverage analysis #-----------------------------------------------------------------------------# -if RUBY_VERSION >= '1.9.3' - require 'codeclimate-test-reporter' - CodeClimate::TestReporter.configure do |config| - config.logger.level = Logger::WARN - end - CodeClimate::TestReporter.start +require 'codeclimate-test-reporter' +CodeClimate::TestReporter.configure do |config| + config.logger.level = Logger::WARN end +CodeClimate::TestReporter.start # Set up #-----------------------------------------------------------------------------# require 'pathname' @@ -111,8 +109,14 @@ # Add this as an extension into the Search specs module PluginsSearchCommand def search_command(*args) Pod::Command::Plugins::Search.new CLAide::ARGV.new(args) + end + end + + module PluginsPublishCommand + def publish_command + Pod::Command::Plugins::Publish.new CLAide::ARGV.new [] end end end