Sha256: 044ff9e0c98816ccf91fb0ca92275c7c81f3fd2af00a51e510728f86054e5b69
Contents?: true
Size: 744 Bytes
Versions: 5
Compression:
Stored size: 744 Bytes
Contents
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) # load Rails first require 'rails' require 'html5_validators' # needs to load the app before loading rspec/rails => capybara require 'fake_app' require 'rspec/rails' # Requires supporting files with custom matchers and macros, etc, # in ./support/ and its subdirectories. Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} RSpec.configure do |config| if config.respond_to? :expect_with config.expect_with(:rspec) { |c| c.syntax = :should } end config.before :all do ActiveRecord::Migration.verbose = false CreateAllTables.up unless ActiveRecord::Base.connection.table_exists? 'people' end end
Version data entries
5 entries across 5 versions & 1 rubygems