spec/spec_helper.rb in cocoapods-browser-0.1.1 vs spec/spec_helper.rb in cocoapods-browser-0.1.2
- old
+ new
@@ -1,8 +1,8 @@
ROOT = Pathname.new(File.expand_path('../../', __FILE__))
-$:.unshift((ROOT + 'lib').to_s)
-$:.unshift((ROOT + 'spec').to_s)
+$LOAD_PATH.unshift((ROOT + 'lib').to_s)
+$LOAD_PATH.unshift((ROOT + 'spec').to_s)
require 'bundler/setup'
require 'bacon'
require 'mocha-on-bacon'
require 'pretty_bacon'
@@ -11,11 +11,10 @@
require 'cocoapods_plugin'
#-----------------------------------------------------------------------------#
module Pod
-
# Disable the wrapping so the output is deterministic in the tests.
#
UI.disable_wrap = true
# Redirects the messages to an internal store.
@@ -30,11 +29,13 @@
def puts(message = '')
@output << "#{message}\n"
end
- def warn(message = '', actions = [])
- @warnings << "#{message}\n" end
+ def warn(message = '', _actions = [])
+ @warnings << "#{message}\n"
+ end
+
def print(message)
@output << message
end
end
end