Sha256: 2b51573eeee3064d942a8c275746345979e7ce073733539265760039642db109

Contents?: true

Size: 609 Bytes

Versions: 1

Compression:

Stored size: 609 Bytes

Contents

$:.unshift File.expand_path('../../examples', __FILE__)

# require 'simplecov'
# SimpleCov.start

require 'rspec'
require 'rspec/autorun'
require 'webmock/rspec'
require 'oauth2'

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

1 entries across 1 versions & 1 rubygems

Version Path
oauth2-client-1.1.0 spec/spec_helper.rb