Sha256: e200aaeffd6440ef06953ff6ef923db8c85d8972f966cba6fbb343e4d217cc16

Contents?: true

Size: 1.21 KB

Versions: 12

Compression:

Stored size: 1.21 KB

Contents

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

require 'rspec'
require 'webmock/rspec'
require 'emojidex'
require 'emojidex/collection'
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

12 entries across 12 versions & 1 rubygems

Version Path
emojidex-0.0.23 spec/spec_helper.rb
emojidex-0.0.22 spec/spec_helper.rb
emojidex-0.0.21 spec/spec_helper.rb
emojidex-0.0.20 spec/spec_helper.rb
emojidex-0.0.19 spec/spec_helper.rb
emojidex-0.0.18 spec/spec_helper.rb
emojidex-0.0.17 spec/spec_helper.rb
emojidex-0.0.16 spec/spec_helper.rb
emojidex-0.0.15 spec/spec_helper.rb
emojidex-0.0.14 spec/spec_helper.rb
emojidex-0.0.13 spec/spec_helper.rb
emojidex-0.0.12 spec/spec_helper.rb