-
-
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.
Merge pull request #4850 from nebulab/waiting-for-dev/remove_rails_v5…
….2_support Remove Rails v5.2 support
- Loading branch information
Showing
8 changed files
with
28 additions
and
35 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
20 changes: 20 additions & 0 deletions
20
core/spec/lib/spree/core/controller_helpers/current_host_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,20 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'rails_helper' | ||
require 'spree/core/controller_helpers/current_host' | ||
|
||
RSpec.describe Spree::Core::ControllerHelpers::CurrentHost do | ||
it 'is deprecated' do | ||
expect(Spree::Deprecation).to receive(:warn).with(/'#{described_class.name}' is deprecated/) | ||
|
||
Class.new(ApplicationController).include(described_class) | ||
end | ||
|
||
it 'includes ActiveStorage::SetCurrent module' do | ||
Spree::Deprecation.silence do | ||
mod = Class.new(ApplicationController).include(described_class) | ||
|
||
expect(mod.ancestors).to include(ActiveStorage::SetCurrent) | ||
end | ||
end | ||
end |