… in config/environments/test.rb
The type attribute is necessary in order to use rails' single table inheritance feature. Unfortunately this collides with Ruby's deprecated Kernel#type method and the Factory object's method missing isn't triggered. This change undefines the type instance method in Factory and fixes the problem. Factory.define :foo do |b| end Factory.define :bar, :parent => :foo do |b| b.type 'Bar' end Factory.define :baz, :parent => :foo do |b| b.type 'Baz' end
…* and 3.*
… Jeweler's rake check_dependencies task is nice when checking FG in different Ruby VMs.
…achinist, which is most-asked about