[rspec-devel] [ rspec-Patches-10951 ] Odd instance variable name in rspec_model template

noreply at rubyforge.org noreply at rubyforge.org
Sun May 20 22:23:07 EDT 2007


Patches item #10951, was opened at 2007-05-21 02:23
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3151&aid=10951&group_id=797

Category: rails plugin
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Kyle Hargraves (philodespotos)
Assigned to: Nobody (None)
Summary: Odd instance variable name in rspec_model template

Initial Comment:
Minor quibble which has been annoying me for a bit. The rspec_model generator's template uses table_name for the instance variable name, which results in models.should be_valid. It seems to read better when the result is model.should be_valid, which is what I've done in the attached patch.

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3151&aid=10951&group_id=797


More information about the rspec-devel mailing list