Sha256: 9a0906ac8d64d02d9ef5b69addd5d50f57ec25775329cbe35c8a9b7ef08d33c6
Contents?: true
Size: 1.02 KB
Versions: 2
Compression:
Stored size: 1.02 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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
emojidex-0.0.10 | spec/spec_helper.rb |
emojidex-0.0.9 | spec/spec_helper.rb |