Skip to content

Commit

Permalink
AlecK/APPEALS-36255 updated calls with new namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
AKeyframe committed Nov 30, 2023
1 parent 1a0ad1b commit 8bc2dd0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/services/deprecation_warnings/development_handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# @note For use with `ActiveSupport::Deprecation.behavior=`.
module DeprecationWarnings
class DevelopmentHandler < BaseHandler
extend DisallowedDeprecations
extend DeprecationWarnings::DisallowedDeprecations

class << self
# :reek:LongParameterList
Expand Down
2 changes: 1 addition & 1 deletion app/services/deprecation_warnings/test_handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# @note For use with `ActiveSupport::Deprecation.behavior=`.
module DeprecationWarnings
class TestHandler < BaseHandler
extend DisallowedDeprecations
extend DeprecationWarnings::DisallowedDeprecations

class << self
# :reek:LongParameterList
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module DeprecationWarnings
let(:message) { "disallowed deprecation message" }

before do
stub_const("DisallowedDeprecations::DISALLOWED_DEPRECATION_WARNING_REGEXES",
stub_const("DeprecationWarnings::DisallowedDeprecations::DISALLOWED_DEPRECATION_WARNING_REGEXES",
[Regexp.new(Regexp.escape(message))])
end

Expand Down
2 changes: 1 addition & 1 deletion spec/services/deprecation_warnings/test_handler_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module DeprecationWarnings
let(:message) { "disallowed deprecation message" }

before do
stub_const("DisallowedDeprecations::DISALLOWED_DEPRECATION_WARNING_REGEXES",
stub_const("DeprecationWarnings::DisallowedDeprecations::DISALLOWED_DEPRECATION_WARNING_REGEXES",
[Regexp.new(Regexp.escape(message))])
end

Expand Down

0 comments on commit 8bc2dd0

Please sign in to comment.