spec/spec_helper.rb in simctl-1.6.2 vs spec/spec_helper.rb in simctl-1.6.3
- old
+ new
@@ -3,22 +3,20 @@
SimpleCov.start do
add_filter 'spec'
end
Coveralls.wear!
-$LOAD_PATH.push File.expand_path("../../lib", __FILE__)
+$LOAD_PATH.push File.expand_path('../../lib', __FILE__)
require File.dirname(__FILE__) + '/../lib/simctl.rb'
-if ENV['TRAVIS']
- SimCtl.default_timeout = 300
-else
- SimCtl.default_timeout = 60
-end
+SimCtl.default_timeout = if ENV['TRAVIS']
+ 300
+ else
+ 60
+ end
-unless ENV['CUSTOM_DEVICE_SET_PATH'] == 'false'
- SimCtl.device_set_path = Dir.mktmpdir 'foo bar'
-end
+SimCtl.device_set_path = Dir.mktmpdir 'foo bar' if ENV['CUSTOM_DEVICE_SET_PATH']
RSpec.configure do |config|
config.tty = true
config.expect_with :rspec do |c|
@@ -28,11 +26,9 @@
config.mock_with :rspec do |c|
c.syntax = :expect
end
def with_rescue(&block)
- begin
- block.class
- rescue
- end
+ block.class
+ rescue
end
end