Sha256: f41e4c08e0010e7f39025d721d2800b512ecbb631f387e5f3f0abee7dcd88ee8
Contents?: true
Size: 899 Bytes
Versions: 5
Compression:
Stored size: 899 Bytes
Contents
# frozen_string_literal: true require 'simplecov' SimpleCov.start do add_filter '/spec/' end require 'active_record' require 'sql_query' #require 'pry' SqlQuery.configure do |config| config.path = '/spec/sql_queries' end RSpec.configure do |config| config.expect_with :rspec do |expectations| expectations.include_chain_clauses_in_custom_matcher_descriptions = true end config.mock_with :rspec do |mocks| mocks.verify_partial_doubles = true end connection = if ENV['BUILDER'] == 'travis' 'postgres://postgres@localhost/travis_ci_test' else 'postgres://sqlquery:sqlquery@localhost/sqlquery' end ActiveRecord::Base.establish_connection(connection) ActiveRecord::Base.connection.execute( 'CREATE TABLE IF NOT EXISTS players (email text);' ) config.order = :random Kernel.srand config.seed end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
sql_query-0.7.4 | spec/spec_helper.rb |
sql_query-0.7.3 | spec/spec_helper.rb |
sql_query-0.7.2 | spec/spec_helper.rb |
sql_query-0.7.1 | spec/spec_helper.rb |
sql_query-0.7.0 | spec/spec_helper.rb |