Sha256: 4bad2fb98c7a40a99bfdfdc12885acfbacf27cf148861be011159e80346bf658
Contents?: true
Size: 681 Bytes
Versions: 8
Compression:
Stored size: 681 Bytes
Contents
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) # load Rails first require 'rails' require 'active_decorator' # needs to load the app before loading rspec/rails => capybara require 'fake_app/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| config.before :all do CreateAllTables.up unless ActiveRecord::Base.connection.table_exists? 'authors' end config.before :each do Book.delete_all Author.delete_all end end
Version data entries
8 entries across 8 versions & 1 rubygems