Sha256: ddea46c56e00988e3f4a9c0119deba23df4e1b71a437a179a51ea634dc27b228
Contents?: true
Size: 735 Bytes
Versions: 3
Compression:
Stored size: 735 Bytes
Contents
if ENV['COVERAGE'] require 'simplecov' SimpleCov.start do add_filter '/test/' end end #require 'rails/test_help' require 'minitest/autorun' require 'minitest/benchmark' #require 'capybara/rails' require 'active_record' 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
act_with_bag-1.0.4 | test/test_helper.rb |
act_with_bag-1.0.3 | test/test_helper.rb |
act_with_bag-1.0.2 | test/test_helper.rb |