tracks/vendor/plugins/scenarios/testing/models.rb
Simon Rozet b13df20630 Install the `scenarios' plugin and require it in spec_helper
It is IMO a great alternative to fixtures.
See http://github.com/aiwilliams/scenarios/tree/master and further commits
for more information.
2008-06-23 21:34:21 +02:00

14 lines
No EOL
306 B
Ruby

class Person < ActiveRecord::Base; end
class Place < ActiveRecord::Base; end
class Thing < ActiveRecord::Base; end
class Note < ActiveRecord::Base; end
class SideEffectyThing < ActiveRecord::Base
after_create do
Thing.create!
end
end
module ModelModule
class Model < ActiveRecord::Base; end
end