spec/spec_helper.rb in oa-oauth-0.2.4 vs spec/spec_helper.rb in oa-oauth-0.2.5
- old
+ new
@@ -1,18 +1,15 @@
-require 'rubygems'
-require 'bundler'
-Bundler.setup
+require 'simplecov'
+SimpleCov.start
require 'rspec'
-require 'rspec/autorun'
-require 'webmock/rspec'
require 'rack/test'
+require 'webmock/rspec'
require 'omniauth/core'
require 'omniauth/test'
require 'omniauth/oauth'
+require File.expand_path('../support/shared_examples', __FILE__)
-Dir[File.dirname(__FILE__) + "/support/**/*.rb"].each {|f| require f}
-
RSpec.configure do |config|
config.include WebMock::API
config.include Rack::Test::Methods
config.extend OmniAuth::Test::StrategyMacros, :type => :strategy
end
@@ -26,7 +23,5 @@
end
def app
lambda{|env| [200, {}, ['Hello']]}
end
-
-WebMock.disable_net_connect!