-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changed deprecation in dashboards controller
- Loading branch information
1 parent
5e67650
commit c7504b3
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
backend/spec/controllers/spree/admin/dashboards_controller_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |