Re: [rspec-users] spec'ing theme views

2009-04-07 Thread Phlip
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

Re: [rspec-users] spec'ing theme views

2009-04-06 Thread David Chelimsky
On Mon, Apr 6, 2009 at 11:59 PM, Phlip wrote: > David Chelimsky wrote: > >> Try this: >> >> describe "/default/index.html.erb", :type => :view do >>  include DefaultHelper >> >>  it "should render" do >>   template.view_paths=(File.join(File.dirname(__FILE__), >> "/../../../themes/my_theme/")) >>

Re: [rspec-users] spec'ing theme views

2009-04-06 Thread Phlip
David Chelimsky wrote: Try this: describe "/default/index.html.erb", :type => :view do include DefaultHelper 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 /../../../them

Re: [rspec-users] spec'ing theme views

2009-04-06 Thread Zach Dennis
On Mon, Apr 6, 2009 at 8:06 PM, jared wrote: > I'm using the theme support plugin on one of my apps, and I would like > to spec the views for each of my themes, but having a little trouble > and hoping someone can point me in the right direction. > > Themed views are located at /themes/my_theme/vi

Re: [rspec-users] spec'ing theme views

2009-04-06 Thread David Chelimsky
On Mon, Apr 6, 2009 at 7:06 PM, jared wrote: > I'm using the theme support plugin on one of my apps, and I would like > to spec the views for each of my themes, but having a little trouble > and hoping someone can point me in the right direction. > > Themed views are located at /themes/my_theme/vi