Sha256: ed55c3b81990e2bc038a737deb596ea45758975d3112026e042a4a9b9bafc094
Contents?: true
Size: 597 Bytes
Versions: 2
Compression:
Stored size: 597 Bytes
Contents
$LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'rubygems' require 'rspec' require 'active_record' require 'sudo_attributes' ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:") ActiveRecord::Schema.define(:version => 1) do create_table :cats, :force => true do |t| t.string :name t.string :color t.integer :age end end RSpec.configure do |config| config.color_enabled = true end class Cat < ActiveRecord::Base attr_protected :name validates_presence_of :color end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sudo_attributes-1.0.2 | spec/spec_helper.rb |
sudo_attributes-1.0.1 | spec/spec_helper.rb |