Patch #20242 ยป replace_tab_from_r14388_in_test_helper.rb_with_spaces-trunk_r14396.diff
| test_helper.rb (working copy) | ||
|---|---|---|
|
ActiveRecord::Base.connection.quoted_date(date)
|
||
|
end
|
||
|
# Asserts that a new record for the given class is created
|
||
|
# and returns it
|
||
|
# Asserts that a new record for the given class is created
|
||
|
# and returns it
|
||
|
def new_record(klass, &block)
|
||
|
assert_difference "#{klass}.count" do
|
||
|
yield
|
||