1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00
thoughtbot--shoulda-matchers/spec/support/acceptance/helpers/rails_version_helpers.rb
2022-08-05 14:56:52 -03:00

19 lines
298 B
Ruby

require_relative 'gem_helpers'
module AcceptanceTests
module RailsVersionHelpers
include GemHelpers
def rails_version
bundle_version_of('rails')
end
def rails_gt_6_0?
rails_version > 6.0
end
def rails_6_x?
rails_version =~ '~> 6.0'
end
end
end