[rspec-devel] [ rspec-Patches-9925 ] Changed ".rhtml" to "template" in REST spec generator
noreply at rubyforge.org
noreply at rubyforge.org
Sat Apr 7 06:34:46 EDT 2007
Patches item #9925, was opened at 2007-04-07 10:34
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=3151&aid=9925&group_id=797
Category: rails plugin
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Scott Taylor (smtlaissezfaire)
Assigned to: Nobody (None)
Summary: Changed ".rhtml" to "template" in REST spec generator
Initial Comment:
The typical REST generated specs include something like the followingL
it "should render index.rhtml" do
do_get
response.should render_template('index')
end
Rails claims that they are moving away from .rhtml as the appropriate suffix of an erb template file. They are chainging it to .erb for the future. Also, some users of rspec are using markaby or other templating systems.
This patch changes those .rhtmls to "should render index template", and so on.
(as a side note: Sorry for the last three patches in one. My internet access has been quite funky as of late, and couldn't bear to download trunk 2 additional times. I'll stay away from that.)
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=3151&aid=9925&group_id=797
More information about the rspec-devel
mailing list