Sha256: ed93655d57b8f11fc5b46980d583e7588bba6c4f0d7e7000141745b081484763

Contents?: true

Size: 1.01 KB

Versions: 4

Compression:

Stored size: 1.01 KB

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 ActiveSupport::Testing::Assertions
  config.include ActiveJob::TestHelper

  config.include InfluxDB::Rails::BrokenClient
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
influxdb-rails-1.0.3 spec/spec_helper.rb
influxdb-rails-1.0.2 spec/spec_helper.rb
influxdb-rails-1.0.1 spec/spec_helper.rb
influxdb-rails-1.0.1.beta3 spec/spec_helper.rb