提交 9b4f5041 编写于 作者: C Carlos Antonio da Silva

Kill whitespaces

上级 2649fba0
......@@ -177,12 +177,12 @@ def inherited(base)
super
end
end
# Clean the +Errors+ object if instance is duped
def initialize_dup(other) # :nodoc:
@errors = nil
super
end
end
# Returns the +Errors+ object that holds all information about attribute error messages.
def errors
......
......@@ -344,7 +344,7 @@ def test_does_not_modify_options_argument
Topic.validates :title, options
assert_equal({ :presence => true }, options)
end
def test_dup_validity_is_independent
Topic.validates_presence_of :title
topic = Topic.new("title" => "Litterature")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册