Sha256: 1811157030815d5183668dec7d1e83fa4f9a15ebb0dcb472d727ece973e5028a

Contents?: true

Size: 1.12 KB

Versions: 12

Compression:

Stored size: 1.12 KB

Contents

require 'simplecov'
SimpleCov.start do
  add_group 'Desk', 'lib/desk'
  add_group 'Faraday Middleware', 'lib/faraday'
  add_group 'Specs', 'spec'
end
require 'desk'
require 'pony'
require 'rspec'
require 'webmock/rspec'
require 'email_spec'

require 'shared_context'
require 'shared_examples'

RSpec.configure do |config|
  config.include WebMock::API
end

def a_delete(path)
  a_request(:delete, Desk.endpoint + path)
end

def a_get(path)
  a_request(:get, Desk.endpoint + path)
end

def a_patch(path)
  a_request(:patch, Desk.endpoint + path)
end

def a_post(path)
  a_request(:post, Desk.endpoint + path)
end

def a_put(path)
  a_request(:put, Desk.endpoint + path)
end

def stub_delete(path)
  stub_request(:delete, Desk.endpoint + path)
end

def stub_get(path)
  stub_request(:get, Desk.endpoint + path)
end

def stub_patch(path)
  stub_request(:patch, Desk.endpoint + path)
end

def stub_post(path)
  stub_request(:post, Desk.endpoint + path)
end

def stub_put(path)
  stub_request(:put, Desk.endpoint + path)
end

def fixture_path
  File.expand_path("../fixtures", __FILE__)
end

def fixture(file)
  File.new(fixture_path + '/' + file)
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
desk-1.2.0 spec/helper.rb
desk-1.1.1 spec/helper.rb
desk-1.1.0 spec/helper.rb
desk-1.0.10 spec/helper.rb
desk-1.0.9 spec/helper.rb
desk-1.0.8 spec/helper.rb
desk-1.0.7 spec/helper.rb
desk-1.0.6 spec/helper.rb
desk-1.0.5 spec/helper.rb
desk-1.0.4 spec/helper.rb
desk-1.0.3 spec/helper.rb
desk-1.0.2 spec/helper.rb