Sha256: 3f046e6f2cf0e8c2502d0bd270bd1514e3cc80bac6db5c76f2d730dccf1c38da
Contents?: true
Size: 670 Bytes
Versions: 1
Compression:
Stored size: 670 Bytes
Contents
require 'spec_helper' describe "create_table acts_as_superclass" do before :all do ActsAsSuperclassSchema.migrate end it "creates foreign key and type columns on" do name = Product.acts_as_association_name Product.attribute_names.should include("#{name}_id") Product.attribute_names.should include("#{name}_type") end end describe "create_table acts_as_superclass option withname" do before :all do ActsAsSuperclassWithNameSchema.migrate end it "creates foreign key and type columns on" do OtherProduct.attribute_names.should include("producible_id") OtherProduct.attribute_names.should include("producible_type") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
acts_as_relation-0.1 | spec/acts_as_migration/acts_as_migratoin_spec.rb |