Sha256: dbfa9e3d36336cf0bcf6cdbcb6721c85c081fb60fd50b7d0a7e5d1243e5d539b

Contents?: true

Size: 987 Bytes

Versions: 1

Compression:

Stored size: 987 Bytes

Contents

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require "active_support"
require_relative "../lib/influxdb/rails/helpers/rspec_matchers"
require File.expand_path(File.dirname(__FILE__) + "/support/broken_client")

ENV["RAILS_ENV"] ||= "test"

require "rails"

if Rails::VERSION::MAJOR < 4 || Rails::VERSION::MAJOR == 4 && Rails::VERSION::MINOR < 2
  raise "Sorry, influxdb-rails only supports Rails 4.2 and higher."
end

require "bundler/setup"
Bundler.require

require "fakeweb"
FakeWeb.allow_net_connect = false

puts "Loading Rails v#{Rails.version}..."

require "support/rails#{Rails::VERSION::MAJOR}/app"
require "rspec/rails"

require "pry"

RSpec.configure do |config|
  # use expect syntax
  config.disable_monkey_patching!

  config.after(:each) do
    travel_back
  end

  config.include ActiveSupport::Testing::TimeHelpers
  config.include ActiveJob::TestHelper

  config.include InfluxDB::Rails::BrokenClient
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
influxdb-rails-1.0.1.beta2 spec/spec_helper.rb