Sha256: 1e75ee0684a9c56d28040e4adb06e00180b5a17384a939487a3bbcbd84fd468a

Contents?: true

Size: 435 Bytes

Versions: 3

Compression:

Stored size: 435 Bytes

Contents

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

    def database_adapter
      Tests::Database.instance.adapter_name
    end

    def database_supports_uuid_columns?
      database_adapter == :postgresql
    end
    alias_method :database_supports_array_columns?,
      :database_supports_uuid_columns?
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
shoulda-matchers-3.0.1 spec/support/unit/helpers/database_helpers.rb
shoulda-matchers-3.0.0 spec/support/unit/helpers/database_helpers.rb
shoulda-matchers-3.0.0.rc1 spec/support/unit/helpers/database_helpers.rb