1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activemodel/test/cases/lint_test.rb
2009-10-07 09:24:51 -05:00

26 lines
444 B
Ruby

require "cases/helper"
class LintTest < ActiveModel::TestCase
include ActiveModel::Lint::Tests
class CompliantModel
def to_model
self
end
def valid?() true end
def new_record?() true end
def destroyed?() true end
def errors
obj = Object.new
def obj.[](key) [] end
def obj.full_messages() [] end
obj
end
end
def setup
@model = CompliantModel.new
end
end