Sha256: 5449af07a5f0b54bf722008ac121404632efd4138073a4af95e2416caef35c5a

Contents?: true

Size: 768 Bytes

Versions: 7

Compression:

Stored size: 768 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__), 'support/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'
    CreateUsers.up unless ActiveRecord::Base.connection.table_exists? 'users'
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
kaminari-0.9.5 spec/spec_helper.rb
kaminari-0.9.4 spec/spec_helper.rb
kaminari-0.9.3 spec/spec_helper.rb
kaminari-0.9.2 spec/spec_helper.rb
kaminari-0.9.1 spec/spec_helper.rb
kaminari-0.9.0 spec/spec_helper.rb
kaminari-0.8.0 spec/spec_helper.rb