[rspec-users] spec'ing theme views

Phlip phlip2005 at gmail.com
Tue Apr 7 08:34:05 EDT 2009

David Chelimsky wrote:

>>>  it "should render" do
>>>   template.view_paths=(File.join(File.dirname(__FILE__),
>>> "/../../../themes/my_theme/"))
>>>   render
>>>  end
>> And why isn't that DRY with the matching /../../../themes code on the
>> production side?
> Because nobody has asked for support for views outside the standard
> directories, and *you* haven't submitted a patch!

I'd probably (mumble) get the architecture wrong...

BTW "DRY" does not strictly apply across the test/code boundary, otherwise all 
the test and code in the world would disappear with a "thoomp" into a singularity.

More information about the rspec-users mailing list