Sha256: dec617c1fcfc97317bdd1d789e4938004d7257189e9756ee1d1623dc6aa5fdef
Contents?: true
Size: 441 Bytes
Versions: 1
Compression:
Stored size: 441 Bytes
Contents
require 'rubygems' require 'bundler/setup' require 'active_record' require 'enumitation' RSpec.configure do |config| config.mock_with :rr end # Stub out AR ActiveRecord::Base.class_eval do alias_method :save, :valid? def self.columns() @columns ||= []; end def self.column(name, sql_type = nil, default = nil, null = true) columns << ActiveRecord::ConnectionAdapters::Column.new(name.to_s, default, sql_type, null) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
enumitation-0.0.3 | spec/spec_helper.rb |