Sha256: 76016b6c4cc84c1838b44e69b075bac1d7381f2cd0560f5bb7d1b1e63c7aba08
Contents?: true
Size: 598 Bytes
Versions: 1
Compression:
Stored size: 598 Bytes
Contents
Bundler.require :default, :test $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'json_serialize' ActiveRecord::Base.establish_connection( adapter: 'sqlite3', database: 'test.sqlite' ) class Json < ActiveRecord::Base include JsonSerialize json_serialize :data, default: "default value" end RSpec.configure do |config| config.before(:each) do Json.connection.execute "DROP TABLE IF EXISTS jsons" Json.connection.execute "CREATE TABLE jsons (id INTEGER PRIMARY KEY ASC, data TEXT, 'default' TEXT)" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
json_serialize-2.1.0 | spec/spec_helper.rb |