Sha256: a5164d6acf8d7b10bd25f688890118795974bfb6de9c62d7ad9bdcdd40fcae5a

Contents?: true

Size: 407 Bytes

Versions: 2

Compression:

Stored size: 407 Bytes

Contents

ENV['RACK_ENV'] ||= 'test'
require 'grape-app'
require 'rack/test'
require 'active_record'

ActiveRecord::Base.configurations = { 'test' => { 'adapter' => 'sqlite3', 'database' => ':memory:' } }
ActiveRecord::Base.establish_connection :test
ActiveRecord::Base.connection.instance_eval do
  create_table :articles do |t|
    t.string :title
    t.timestamps
  end
end

class Article < ActiveRecord::Base
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
grape-app-0.9.0 spec/spec_helper.rb
grape-app-0.8.8 spec/spec_helper.rb