Sha256: 0560252c21eab44a8814b6901f440be8b57cc5e77918b10dd40091148e7bb6fe
Contents?: true
Size: 817 Bytes
Versions: 3
Compression:
Stored size: 817 Bytes
Contents
$:.unshift File.expand_path('../../examples', __FILE__) require 'simplecov' require 'coveralls' SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter ] SimpleCov.start require 'oauth2' require 'rspec' require 'rspec/autorun' require 'webmock/rspec' WebMock.disable_net_connect!(:allow => 'coveralls.io') RSpec.configure do |config| config.mock_with :rspec config.expect_with :rspec do |c| c.syntax = :expect end end def stub_delete(path) stub_request(:delete, 'https://example.com' + path) end def stub_get(path) stub_request(:get, 'https://example.com' + path) end def stub_post(path) stub_request(:post, 'https://example.com' + path) end def stub_put(path) stub_request(:put, 'https://example.com' + path) end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
oauth2-client-1.1.3 | spec/spec_helper.rb |
oauth2-client-1.1.2 | spec/spec_helper.rb |
oauth2-client-1.1.1 | spec/spec_helper.rb |