Skip to content

Commit

Permalink
Use typical pattern for removing constant instead of removed ActiveSu…
Browse files Browse the repository at this point in the history
…pport::Dependencies#remove_constant
  • Loading branch information
cjcolvar committed Dec 13, 2024
1 parent bef3762 commit bdb08ab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spec/lib/freyja/persister_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ class MyLockingResource < Hyrax::Resource
end

after do
ActiveSupport::Dependencies.remove_constant("MyLockingResource")
Object.send(:remove_const, "MyLockingResource")
end

describe "#save" do
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/frigg/persister_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ class MyLockingResource < Hyrax::Resource
end

after do
ActiveSupport::Dependencies.remove_constant("MyLockingResource")
Object.send(:remove_const, "MyLockingResource")
end

describe "#save" do
Expand Down
2 changes: 1 addition & 1 deletion spec/wings/valkyrie/persister_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ class MyLockingResource < Hyrax::Resource
end

after do
ActiveSupport::Dependencies.remove_constant("MyLockingResource")
Object.send(:remove_const, "MyLockingResource")
end

describe "#save" do
Expand Down

0 comments on commit bdb08ab

Please sign in to comment.