Sha256: cb6c8be5400ca4a79d87f38f746ea4f29f59935d4e864f516f760b1ff92e271b

Contents?: true

Size: 730 Bytes

Versions: 5

Compression:

Stored size: 730 Bytes

Contents

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
# load Rails first
require 'rails'
require 'r_decorator'
# needs to load the app before loading rspec/rails => capybara
require 'fake_app/fake_app'
require 'rspec/rails'
require 'capybara/rspec'
require 'r_decorator/rspec'

# 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

5 entries across 5 versions & 1 rubygems

Version Path
r_decorator-0.0.7 spec/spec_helper.rb
r_decorator-0.0.6 spec/spec_helper.rb
r_decorator-0.0.5 spec/spec_helper.rb
r_decorator-0.0.4 spec/spec_helper.rb
r_decorator-0.0.3 spec/spec_helper.rb