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
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/"))
>>
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
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
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