diff --git a/backend/spec/controllers/spree/admin/dashboards_controller_spec.rb b/backend/spec/controllers/spree/admin/dashboards_controller_spec.rb new file mode 100644 index 00000000000..c142d7f18ea --- /dev/null +++ b/backend/spec/controllers/spree/admin/dashboards_controller_spec.rb @@ -0,0 +1,7 @@ +require 'spec_helper' + +describe Spree::Admin::DashboardsController, type: :controller do + it 'emits a warning' do + expect(Spree.deprecator).to receive(:warn) + end +end diff --git a/backend/spec/views/spree/admin/shared/home_spec.rb b/backend/spec/views/spree/admin/shared/home_spec.rb new file mode 100644 index 00000000000..8eaa3e83214 --- /dev/null +++ b/backend/spec/views/spree/admin/shared/home_spec.rb @@ -0,0 +1,8 @@ +require 'spec_helper' + +describe 'spree/admin/dashboards/home', type: :view, partial_double_verification: false do + it 'renders the home view' do + render + expect(rendered).to match('The Home view is deprecated') + end +end