# 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 'ruby_rides' # Require testing dependencies require 'rspec' require 'webmock/rspec' # 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