Skip to content

Commit

Permalink
Remove action_pack_lt_5? methods
Browse files Browse the repository at this point in the history
  • Loading branch information
vsppedro committed Mar 21, 2021
1 parent 0ffa7b9 commit 02b61dd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions lib/shoulda/matchers/rails_shim.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ module Matchers
# @private
module RailsShim # rubocop:disable Metrics/ModuleLength
class << self
def action_pack_lt_5?
Gem::Requirement.new('< 5').satisfied_by?(action_pack_version)
end

def action_pack_version
Gem::Version.new(::ActionPack::VERSION::STRING)
rescue NameError
Expand Down
4 changes: 0 additions & 4 deletions spec/support/unit/helpers/action_pack_versions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ def action_pack_gte_5?
action_pack_version >= 5
end

def action_pack_lt_5?
action_pack_version < 5
end

def action_pack_version
Tests::Version.new(ActionPack::VERSION::STRING)
end
Expand Down

0 comments on commit 02b61dd

Please sign in to comment.