mirror of
https://github.com/github/rails.git
synced 2026-01-09 14:48:01 -05:00
I had to create a new table because I needed an STI table,
which does not have both a "type" and a "custom_type"
the test fails with:
1) Error:
test_alt_becomes_works_with_sti(InheritanceTest):
NoMethodError: undefined method `type=' for #<Cabbage id: 1, name: "my cucumber", custom_type: "Cucumber">
/Users/username/Projects/rails/activemodel/lib/active_model/attribute_methods.rb:432:in `method_missing'
/Users/username/Projects/rails/activerecord/lib/active_record/attribute_methods.rb:100:in `method_missing'
/Users/username/Projects/rails/activerecord/lib/active_record/persistence.rb:165:in `becomes'
test/cases/inheritance_test.rb:134:in `test_becomes_works_with_sti'
test/cases/inheritance_test.rb:140:in `test_alt_becomes_works_with_sti'
Conflicts:
activerecord/test/cases/inheritance_test.rb
9 lines
137 B
YAML
9 lines
137 B
YAML
first_cucumber:
|
|
id: 1
|
|
custom_type: Cucumber
|
|
name: 'my cucumber'
|
|
|
|
first_cabbage:
|
|
id: 2
|
|
custom_type: Cabbage
|
|
name: 'my cabbage' |