Sha256: 85ef5906a086f49ebbba6b1e52e16e44cfa8130bf5d3b84818dd56d4ed78cb80

Contents?: true

Size: 368 Bytes

Versions: 3

Compression:

Stored size: 368 Bytes

Contents

module UnitTests
  module ActiveRecordVersions
    def self.configure_example_group(example_group)
      example_group.include(self)
      example_group.extend(self)
    end

    def active_record_version
      Tests::Version.new(ActiveRecord::VERSION::STRING)
    end

    def active_record_can_raise_range_error?
      active_record_version >= 4.2
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/shoulda-matchers-2.8.0/spec/support/unit/helpers/active_record_versions.rb
shoulda-matchers-2.8.0 spec/support/unit/helpers/active_record_versions.rb
shoulda-matchers-2.8.0.rc2 spec/support/unit/helpers/active_record_versions.rb