Sha256: dab55269176e454d73defb93becfc595467a90ea4fa54bb7b55c53006614f890
Contents?: true
Size: 648 Bytes
Versions: 1
Compression:
Stored size: 648 Bytes
Contents
require "codeclimate-test-reporter" CodeClimate::TestReporter.start require "rspec/core" require "database_cleaner" require "datetime-scopes" ActiveRecord::Base.establish_connection adapter: "sqlite3", database: ":memory:" DatabaseCleaner.strategy = :truncation RSpec.configure do |c| c.before :suite do DatabaseCleaner.clean end c.after :example do DatabaseCleaner.clean end end # Create table and declare AR model ActiveRecord::Migration.verbose = false ActiveRecord::Migration.create_table :foo_bar do |t| t.datetime :foo t.date :bar end class FooBar < ActiveRecord::Base datetime_scopes :foo date_scopes :bar end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
datetime-scopes-1.0.0.alpha1 | spec/spec_helper.rb |