Sha256: 0b2ca4865526c9186ec4dfdbde119e90a690514081c142525d751003e92436ef

Contents?: true

Size: 915 Bytes

Versions: 7

Compression:

Stored size: 915 Bytes

Contents

require 'volt'

if ENV['DB'] = 'pg'
  Volt.configure do |config|
    config.db.uri = 'postgres://ryanstout:@localhost:5432/volt_sql_test'
  end
end

require 'volt/spec/setup'

unless RUBY_PLATFORM == 'opal'
  begin
    require 'pry-byebug'
  rescue LoadError => e
    # Ignore if not installed
  end
end

# Specs are run against the kitchen sink app
kitchen_sink_path = File.expand_path(File.join(File.dirname(__FILE__), 'apps/kitchen_sink'))
Volt.spec_setup(kitchen_sink_path)

unless RUBY_PLATFORM == 'opal'
  RSpec.configure do |config|
    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.seed = '10780'
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
volt-sql-0.0.7 spec/spec_helper.rb
volt-sql-0.0.6 spec/spec_helper.rb
volt-sql-0.0.5 spec/spec_helper.rb
volt-sql-0.0.4 spec/spec_helper.rb
volt-sql-0.0.3 spec/spec_helper.rb
volt-sql-0.0.2 spec/spec_helper.rb
volt-sql-0.0.1 spec/spec_helper.rb