Sha256: b287916b981f5fc0da6512c9a22a3ccb4c9981f5e3fce3dcf92076a891d0b257

Contents?: true

Size: 371 Bytes

Versions: 2

Compression:

Stored size: 371 Bytes

Contents

gem 'minitest'
require 'minitest/spec'
require 'minitest/autorun'
require 'mocha'

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

2 entries across 2 versions & 1 rubygems

Version Path
gram-0.3.0 lib/gram/gem/templates/spec/minispec_helper.tt
gram-0.2.0 lib/gram/gem/templates/spec/minispec_helper.tt