Sha256: fd6991c6e85e2d5a9a0f3042429b675cee39f9e2189a9624df6a07481441a124
Contents?: true
Size: 665 Bytes
Versions: 1
Compression:
Stored size: 665 Bytes
Contents
require 'simplecov' require 'rubygems' require 'minitest/autorun' require 'active_record' SimpleCov.start do add_filter 'test' command_name 'Minitest' end ActiveRecord::Base.establish_connection({ adapter: 'sqlite3', database: 'bag.sqlite3' }) ActiveRecord::Schema.define do create_table 'orders', :force => true do |t| t.string :category t.column 'bag', :text end end ActiveRecord::Schema.define do create_table 'users', :force => true do |t| t.string :type t.text :bag end end require File.dirname(__FILE__) + '/../lib/act_with_bag.rb' class Order < ActiveRecord::Base add_to_bag :field, flag: :boolean, at: :date end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
act_with_bag-0.5.6 | test/test_helper.rb |