Shifting dashboard rendering from partials to templates

This commit is contained in:
Rob Harrington
2014-10-22 12:30:07 +11:00
parent 8bf472e970
commit 3d938b3450
4 changed files with 4 additions and 4 deletions

View File

@@ -7,9 +7,9 @@ Spree::Admin::OverviewController.class_eval do
if spree_current_user.manages_one_enterprise?
@enterprise = @enterprises.first
render partial: "single_enterprise_dashboard"
render "single_enterprise_dashboard"
else
render partial: "multi_enterprise_dashboard"
render "multi_enterprise_dashboard"
end
end
end

View File

@@ -14,7 +14,7 @@ describe Spree::Admin::OverviewController do
it "renders the single enterprise dashboard" do
spree_get :index
response.should render_template partial: "_single_enterprise_dashboard"
response.should render_template "single_enterprise_dashboard"
end
end
@@ -24,7 +24,7 @@ describe Spree::Admin::OverviewController do
it "renders the multi enterprise dashboard" do
spree_get :index
response.should render_template partial: "_multi_enterprise_dashboard"
response.should render_template "multi_enterprise_dashboard"
end
end
end