Sha256: fc2fc2ebbc748ec5e4d5420f7a05cbfb735369d36cb36ec606486d70159c2998
Contents?: true
Size: 531 Bytes
Versions: 2
Compression:
Stored size: 531 Bytes
Contents
require "rspec" require "ar_protobuf_store" require "active_record" ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:") ActiveRecord::Schema.verbose = false def setup_db(&block) # ActiveRecord caches columns options like defaults etc. Clear them! ActiveRecord::Base.connection.schema_cache.clear! ActiveRecord::Schema.define(:version => 1, &block) end def teardown_db ActiveRecord::Base.connection.tables.each do |table| ActiveRecord::Base.connection.drop_table(table) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ar_protobuf_store-0.2.0 | spec/spec_helper.rb |
ar_protobuf_store-0.1.0 | spec/spec_helper.rb |