Sha256: 63d2a5b458a0cb253c473d26109571552f4caa4d16aef433646cc50ab4743afe

Contents?: true

Size: 819 Bytes

Versions: 5

Compression:

Stored size: 819 Bytes

Contents

# encoding: utf-8
require 'simplecov'
require 'active_record'
require 'active_support'

SimpleCov.start do
  root File.join(File.dirname(__FILE__), '..')
  add_filter "/bin/"
  add_filter "/spec/"
end

$:.unshift(File.dirname(__FILE__))
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'json_schema_builder'
require 'fixtures/user'

RSpec.configure do |config|
  config.treat_symbols_as_metadata_keys_with_true_values = true
  config.run_all_when_everything_filtered = true
  config.filter_run :focus
  config.after(:all) do
    FileUtils.rm_rf(test_out_path)
  end
end

ActiveRecord::Base.establish_connection({
  'adapter' => 'sqlite3',
  'database' => ':memory:'
})
load(File.join(File.dirname(__FILE__), 'fixtures/ar_schema.rb'))

def test_out_path
  File.join( File.dirname( __FILE__), 'tmp')
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
json_schema_builder-0.0.6 spec/spec_helper.rb
json_schema_builder-0.0.5 spec/spec_helper.rb
json_schema_builder-0.0.4 spec/spec_helper.rb
json_schema_builder-0.0.3 spec/spec_helper.rb
json_schema_builder-0.0.2 spec/spec_helper.rb