Sha256: e4f9d11a8f005a6bef98a396c249c827efcd4d992b7109a79bfbf78404de944f

Contents?: true

Size: 304 Bytes

Versions: 3

Compression:

Stored size: 304 Bytes

Contents

require 'rspec'
require '<%= underscored %>'
<% if rails %>

ActiveRecord::Base.establish_connection(
  :adapter => 'sqlite3',
  :database => ':memory:'
)

ActiveRecord::Schema.define do
  create_table :articles do |t|
    t.string     :name
    t.integer    :price

    t.timestamps
  end
end
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gram-0.3.0 lib/gram/gem/templates/spec/rspec_helper.tt
gram-0.2.0 lib/gram/gem/templates/spec/rspec_helper.tt
gram-0.1.0 lib/gram/gem/templates/spec/spec_helper.tt