Sha256: 87f280cbd59337bc3c1f6c0d237e0935f47563258cb7edfbb133624486c3643a

Contents?: true

Size: 1.11 KB

Versions: 26

Compression:

Stored size: 1.11 KB

Contents

# This file is copied to spec/ when you run 'rails generate rspec:install'
require 'rubygems'
require 'rspec'
require File.dirname(__FILE__) + '/../lib/appstats'

# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
# Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}

RSpec.configure do |config|

  dbconfig = YAML::load(File.open('db/config.yml'))
  ActiveRecord::Base.establish_connection(dbconfig['test'])

  # == Mock Framework
  #
  # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
  #
  # config.mock_with :mocha
  # config.mock_with :flexmock
  # config.mock_with :rr
  config.mock_with :rspec
  # config.before(:each) { Machinist.reset_before_test }
  
  # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
  # config.fixture_path = "#{::Rails.root}/spec/fixtures"

  # If you're not using ActiveRecord, or you'd prefer not to run each of your
  # examples within a transaction, remove the following line or assign false
  # instead of true.
  # config.use_transactional_fixtures = true

end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
appstats-0.21.3 spec/spec_helper.rb
appstats-0.21.2 spec/spec_helper.rb
appstats-0.21.1 spec/spec_helper.rb
appstats-0.20.12 spec/spec_helper.rb
appstats-0.20.11 spec/spec_helper.rb
appstats-0.20.10 spec/spec_helper.rb
appstats-0.20.9 spec/spec_helper.rb
appstats-0.20.8 spec/spec_helper.rb
appstats-0.20.7 spec/spec_helper.rb
appstats-0.20.6 spec/spec_helper.rb
appstats-0.20.2 spec/spec_helper.rb
appstats-0.20.1 spec/spec_helper.rb
appstats-0.20.0 spec/spec_helper.rb
appstats-0.19.7 spec/spec_helper.rb
appstats-0.19.6 spec/spec_helper.rb
appstats-0.19.2 spec/spec_helper.rb
appstats-0.19.1 spec/spec_helper.rb
appstats-0.19.0 spec/spec_helper.rb
appstats-0.18.0 spec/spec_helper.rb
appstats-0.17.5 spec/spec_helper.rb