Sha256: c7d097702cf9586e8249fe04001361a177d3f77f4e6d27beb05c48ba305eadb1
Contents?: true
Size: 1.35 KB
Versions: 1
Compression:
Stored size: 1.35 KB
Contents
# This file was generated by the `rspec --init` command. Conventionally, all # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. # Require this file using `require "spec_helper"` to ensure that it is only # loaded once. # # see http://blog.markstarkman.com/blog/2013/01/23/using-sqlite-to-test-active-record-models/ require 'active_record' ActiveRecord::Base.establish_connection adapter: 'mysql2', database: 'most_related' # ActiveRecord::Base.establish_connection adapter: 'sqlite3', database: ':memory:' # ActiveRecord::Base.establish_connection adapter: 'postgresql', database: 'most_related' load 'support/schema.rb' require 'most_related' require 'support/models' require 'database_cleaner' require 'byebug' DatabaseCleaner.strategy = :transaction # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration 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 # Run specs in random order to surface order dependencies. If you find an # order dependency and want to debug it, you can fix the order by providing # the seed, which is printed after each run. # --seed 1234 config.order = 'random' config.before :each do DatabaseCleaner.start end config.after :each do DatabaseCleaner.clean end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
most_related-0.0.4 | spec/spec_helper.rb |