Sha256: 15ee44f2a8d4ddf9eda991fe5441ca90e29ceb55ff5abb4348814c9915469bc5

Contents?: true

Size: 1.18 KB

Versions: 1

Compression:

Stored size: 1.18 KB

Contents

# require "codeclimate-test-reporter"
# CodeClimate::TestReporter.start

require 'rspec'
require 'webmock/rspec'
require 'emojidex'
require 'emojidex/vectors'

WebMock.disable_net_connect!(allow_localhost: true)

Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }

if ENV['TRAVIS'] || ENV['COVERAGE']
  require 'simplecov'

  if ENV['TRAVIS']
    require 'coveralls'
    SimpleCov.formatter = Coveralls::SimpleCov::Formatter
  end

  SimpleCov.start do
    add_filter '/spec/'
  end
end

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('../support/fixtures', __FILE__)
end

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

def sample_collection(name)
  e =Emojidex::Collection.new
  e.load_local_collection(File.expand_path("../support/sample_collections/#{name}", __FILE__))
  e
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
emojidex-0.0.11 spec/spec_helper.rb