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