[rspec-devel] [ rspec-Patches-9925 ] Changed ".rhtml" to "template" in REST spec generator
noreply at rubyforge.org
noreply at rubyforge.org
Sun Apr 8 09:11:04 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: Closed
>Resolution: Accepted
Priority: 3
Submitted By: Scott Taylor (smtlaissezfaire)
>Assigned to: David Chelimsky (dchelimsky)
>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.)
----------------------------------------------------------------------
>Comment By: David Chelimsky (dchelimsky)
Date: 2007-04-08 13:11
Message:
Applied to trunk rev 1724.
FYI - the generator pays attention to the rails version and generates .rhtml files for published rails versions through 1.2.3 and .erb for edge.
----------------------------------------------------------------------
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