[rspec-devel] [ rspec-Bugs-9311 ] Controller Specs do not play nicely with Markaby and Rxml

noreply at rubyforge.org noreply at rubyforge.org
Mon Apr 9 01:50:40 EDT 2007


Bugs item #9311, was opened at 2007-03-15 14:48
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=9311&group_id=797

Category: None
Group: None
>Status: Closed
Resolution: None
Priority: 3
Submitted By: Brian Takita (btakita)
Assigned to: Nobody (None)
Summary: Controller Specs do not play nicely with Markaby and Rxml

Initial Comment:
Look in rails/runner/context/controller.rb line 18.

If render is called without a block and views are not integrated, ActionView::Base#find_template_extension_for is stubbed to return 'rhtml'.

Unfortunately, rails caches this result. When I run a view spec, e.g.
render 'foo/bar'

and bar is a markaby file (bar.mab), rails uses the cached extension (rhtml) when @@cache_template_extensions is set to true, which it is by default.

See ActionView::Base#pick_template_extension


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

Comment By: David Chelimsky (dchelimsky)
Date: 2007-04-01 07:27

Message:
Brian - we made a change a while back so that cache_template_extensions is turned off by default (when running rspec examples). This can be found in branches/0.9-dev. I *think* that should have solved this problem, yes? If so, please close this.

Thanks

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

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


More information about the rspec-devel mailing list