# FakeRecord Mimics ActiveRecord::Base, so you can use your record like a model.
# It needs its subclasses to define two methods:
# - initialize(*args, &block) for create and build to work, and
# - save! for create and save to work.
# save! is supposed to raise a RecordNotSavedError when the record couldn't be
# saved, e.g. because of validation errors.
end
else
object = new(attributes, options)
end
end
def self.build(*args, &block)
end
save!
end
false
end
end