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.

_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to