Sha256: 477a23454c9995833306914319b868421093017b31ee22243a00ec6973d99920

Contents?: true

Size: 764 Bytes

Versions: 6

Compression:

Stored size: 764 Bytes

Contents

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'rails'
require 'kaminari'

require File.join(File.dirname(__FILE__), '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.mock_with :rr
  config.before :all do
#     ActiveRecord::Base.connection.execute 'CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))' unless ActiveRecord::Base.connection.table_exists? 'users'
    CreateAllTables.up unless ActiveRecord::Base.connection.table_exists? 'users'
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
kaminari-0.9.12 spec/spec_helper.rb
kaminari-0.9.10 spec/spec_helper.rb
kaminari-0.9.9 spec/spec_helper.rb
kaminari-0.9.8 spec/spec_helper.rb
kaminari-0.9.7 spec/spec_helper.rb
kaminari-0.9.6 spec/spec_helper.rb