Sha256: 628d53288eba1484878dcb7e6bad89e2d0d97c58b3d0fd7ab9469d60bf811b3b

Contents?: true

Size: 761 Bytes

Versions: 6

Compression:

Stored size: 761 Bytes

Contents

# Configure Rails Environment
ENV["RAILS_ENV"] = "test"
require "rails/version"
require File.expand_path("../dummy_apps/rails#{Rails::VERSION::MAJOR}/config/environment.rb",  __FILE__)
require "rspec/rails"

Rails.backtrace_cleaner.remove_silencers!

TEST_SCHEMAS_DIR = File.expand_path("../fixtures/schemas", __FILE__)
TEST_HYPER_SCHEMA_FILE = File.expand_path("../fixtures/hyper_schema.yml", __FILE__)

RSpec.configure do |config|
  if config.files_to_run.one?
    config.default_formatter = 'doc'
  end

  config.order = :random
  Kernel.srand config.seed

  config.expect_with :rspec do |expectations|
    expectations.syntax = :expect
  end

  config.mock_with :rspec do |mocks|
    mocks.syntax = :expect
    mocks.verify_partial_doubles = true
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
json_schema_rails-0.2.1 spec/spec_helper.rb
json_schema_rails-0.2.0 spec/spec_helper.rb
json_schema_rails-0.1.0 spec/spec_helper.rb
json_schema_rails-0.0.3 spec/spec_helper.rb
json_schema_rails-0.0.2 spec/spec_helper.rb
json_schema_rails-0.0.1 spec/spec_helper.rb