spec/models/relationships/belongs_to_spec.rb in ampere-0.1.3 vs spec/models/relationships/belongs_to_spec.rb in ampere-1.0.0

- old
+ new

@@ -4,27 +4,33 @@ before :all do Redis.new.flushall Ampere.connect # These are used by the has_one/belongs_to example below - class Car < Ampere::Model + class Car + include Ampere::Model + field :make field :model field :year has_one :engine has_many :passengers end - class Engine < Ampere::Model + class Engine + include Ampere::Model + field :displacement field :cylinders field :configuration belongs_to :car end - class Passenger < Ampere::Model + class Passenger + include Ampere::Model + field :name field :seat belongs_to :car end