Skip to content

Commit 63d6b52

Browse files
committed
Remove check for rails-controller-testing gem
The `rails-controller-testing` gem provided helper methods for controller tests up to Rails 4.2. This condition was used to support testing with both Rails 4.2 and Rails 5+. Since we no longer test with Rails versions below 5, the condition is no longer necessary. ref: #21
1 parent baf88e9 commit 63d6b52

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

spec/spec_helper.rb

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,7 @@ class TestMailer < ActionMailer::Base; end
3535
config.include ::Sorcery::TestHelpers::Internal
3636
config.include ::Sorcery::TestHelpers::Internal::Rails
3737

38-
if begin
39-
Module.const_defined?('::Rails::Controller::Testing')
40-
rescue StandardError
41-
false
42-
end
43-
config.include ::Rails::Controller::Testing::TestProcess, type: :controller
44-
config.include ::Rails::Controller::Testing::TemplateAssertions, type: :controller
45-
config.include ::Rails::Controller::Testing::Integration, type: :controller
46-
end
38+
config.include ::Rails::Controller::Testing::TestProcess, type: :controller
39+
config.include ::Rails::Controller::Testing::TemplateAssertions, type: :controller
40+
config.include ::Rails::Controller::Testing::Integration, type: :controller
4741
end

0 commit comments

Comments
 (0)