Sha256: b5ba30a90c259bea9ac0e1002689f542af8d34b3dcff020bf1887cdb405eddd5

Contents?: true

Size: 808 Bytes

Versions: 2

Compression:

Stored size: 808 Bytes

Contents

# Do these first
require 'simplecov'
# Coveralls only reports when Travis runs the tests
require 'coveralls'

SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
  SimpleCov::Formatter::HTMLFormatter,
  Coveralls::SimpleCov::Formatter
]
SimpleCov.start

# Require my gem itself
require 'ga_example_gem'

# Require testing dependencies
require 'rspec'
require 'webmock/rspec'
require 'json'

# This is where you put additional rSpec configuration
RSpec.configure do |config|
  config.order = 'random'
  config.expect_with :rspec do |c|
    c.syntax = :expect
  end
end

# Helper methods for accessing fixture path
def fixture_path
  File.expand_path('../fixtures', __FILE__)
end

# Helper method for accessing a real file in the fixture path
def fixture(file)
  File.new(fixture_path + '/' + file)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ga_example_gem-0.0.4 spec/spec_helper.rb
ga_example_gem-0.0.3 spec/spec_helper.rb