arsturges / RVB

A DOE tool to map appliance efficiency legislation to CO2 reductions.
ead5.lbl.gov
1 stars 0 forks source link

Testing concepts #12

Closed arsturges closed 6 years ago

arsturges commented 14 years ago

Do I need to clear out all my test data at the end of each test? Is that normal?

Def teardown Rulemaking.destroy_all end

Otherwise rows are left in there and it causes validation errors.

arsturges commented 14 years ago

More verbose testing statements? assert !a.save is how I do it currently. You showed me a more verbose way, but I have forgotten it.

arsturges commented 14 years ago

Generally I need to add a lot more tests. I have not been writing tests recently.