Sha256: 5a26fe4cb9df06981a3214caf69f9453b643f048386505e7bd732de919fd4ce5

Contents?: true

Size: 358 Bytes

Versions: 12

Compression:

Stored size: 358 Bytes

Contents

RSpec.configure do |c|
  def active_model_3_1?
    (::ActiveModel::VERSION::MAJOR == 3 && ::ActiveModel::VERSION::MINOR >= 1) || active_model_4_0?
  end

  def active_model_3_2?
    (::ActiveModel::VERSION::MAJOR == 3 && ::ActiveModel::VERSION::MINOR >= 2) || active_model_4_0?
  end

  def active_model_4_0?
    ::ActiveModel::VERSION::MAJOR == 4
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
shoulda-matchers-2.7.0 spec/support/active_model_versions.rb
shoulda-matchers-2.6.2 spec/support/active_model_versions.rb
mcmire-shoulda-matchers-2.6.2.docs.1 spec/support/active_model_versions.rb
mcmire-shoulda-matchers-2.6.1.docs.1 spec/support/active_model_versions.rb
shoulda-matchers-2.6.1 spec/support/active_model_versions.rb
shoulda-matchers-2.6.1.rc2 spec/support/active_model_versions.rb
shoulda-matchers-2.6.1.rc1 spec/support/active_model_versions.rb
shoulda-matchers-2.6.0 spec/support/active_model_versions.rb
mcmire-shoulda-matchers-2.5.0 spec/support/active_model_versions.rb
shoulda-matchers-2.5.0 spec/support/active_model_versions.rb
shoulda-matchers-2.4.0 spec/support/active_model_versions.rb
shoulda-matchers-2.4.0.rc1 spec/support/active_model_versions.rb