Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #8421 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

[PATCH] Use assert_difference in scaffold functional test

Reported by: norbert Assigned to: core
Priority: normal Milestone: 1.x
Component: Railties Version: edge
Severity: normal Keywords: tiny scaffold generator tested
Cc:

Description

This patch updates the functional test template of the scaffold generator to use assert_difference instead of the clunky old_count variable style that is being used now.

Attachments

assert_difference_in_scaffold_functional_test.diff (1.1 kB) - added by norbert on 05/21/07 09:24:55.

Change History

05/21/07 09:24:55 changed by norbert

  • attachment assert_difference_in_scaffold_functional_test.diff added.

05/22/07 08:12:53 changed by kevinclark

  • keywords changed from tiny scaffold generator to tiny scaffold generator tested.

Code looks fine, and it brings the generated tests in to line with current idioms. +1

05/22/07 09:41:31 changed by bitsweat

  • status changed from new to closed.
  • resolution set to fixed.

(In [6808]) Generated scaffold functional tests use assert_difference. Closes #8421.