Sha256: 46a48d298d7fa16dd2cb73bac43f79d2a5a5256bdca6cdd0cbc9e2cc947781f9

Contents?: true

Size: 918 Bytes

Versions: 10

Compression:

Stored size: 918 Bytes

Contents

require 'simplecov'

SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
  SimpleCov::Formatter::HTMLFormatter
])

SimpleCov.start do
  add_filter "/spec/"
end

require 'discourse_api'
require 'rspec'
require 'webmock/rspec'

RSpec.configure do |config|
  config.expect_with :rspec do |c|
    c.syntax = :expect
  end
end

WebMock.disable_net_connect!(:allow_localhost => true)

def a_delete(path)
  a_request(:delete, path)
end

def a_get(path)
  a_request(:get, path)
end

def a_post(path)
  a_request(:post, path)
end

def a_put(path)
  a_request(:put, path)
end

def stub_delete(path)
  stub_request(:delete, path)
end

def stub_get(path)
  stub_request(:get, path)
end

def stub_post(path)
  stub_request(:post, path)
end

def stub_put(path)
  stub_request(:put, path)
end

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

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
discourse_api-0.17.0 spec/spec_helper.rb
discourse_api-0.16.1 spec/spec_helper.rb
discourse_api-0.16.0 spec/spec_helper.rb
discourse_api-0.15.0 spec/spec_helper.rb
discourse_api-0.14.1 spec/spec_helper.rb
discourse_api-0.14.0 spec/spec_helper.rb
discourse_api-0.13.0 spec/spec_helper.rb
discourse_api-0.12.0 spec/spec_helper.rb
discourse_api-0.10.1 spec/spec_helper.rb
discourse_api-0.10.0 spec/spec_helper.rb