Sha256: fb2a195e32417f745bf12e73fb6abbd3c6221ba6b3951e29d004218c8b31354e
Contents?: true
Size: 547 Bytes
Versions: 2
Compression:
Stored size: 547 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_supports_enum? defined?(::ActiveRecord::Enum) end def active_record_supports_has_secure_password? active_record_version >= 3.1 end def active_record_supports_array_columns? active_record_version > 4.2 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
shoulda-matchers-3.0.1 | spec/support/unit/helpers/active_record_versions.rb |
shoulda-matchers-3.0.0 | spec/support/unit/helpers/active_record_versions.rb |