Skip to content

Commit

Permalink
changed deprecation in dashboards controller
Browse files Browse the repository at this point in the history
  • Loading branch information
lauriejefferson committed Nov 1, 2023
1 parent 5e67650 commit c7504b3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions backend/spec/views/spree/admin/shared/home_spec.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c7504b3

Please sign in to comment.