Sha256: 33d418e57d86606bb7227223d03f082042890fd8aaa8ff75cba58cb72d3480a5

Contents?: true

Size: 350 Bytes

Versions: 15

Compression:

Stored size: 350 Bytes

Contents

RSpec.configure do |c|
  def active_model_3_0?
    ::ActiveModel::VERSION::MAJOR == 3 && ::ActiveModel::VERSION::MINOR >= 0
  end

  def active_model_3_1?
    ::ActiveModel::VERSION::MAJOR == 3 && ::ActiveModel::VERSION::MINOR >= 1
  end

  def active_model_3_2?
    ::ActiveModel::VERSION::MAJOR == 3 && ::ActiveModel::VERSION::MINOR >= 2
  end
end

Version data entries

15 entries across 14 versions & 2 rubygems

Version Path
shoulda-matchers-2.3.0 spec/support/active_model_versions.rb
challah-1.0.0 vendor/bundle/gems/shoulda-matchers-2.2.0/spec/support/active_model_versions.rb
shoulda-matchers-2.2.0 spec/support/active_model_versions.rb
challah-1.0.0.beta3 vendor/bundle/gems/shoulda-matchers-2.1.0/spec/support/active_model_versions.rb
challah-1.0.0.beta3 vendor/bundle/gems/shoulda-matchers-1.5.6/spec/support/active_model_versions.rb
shoulda-matchers-2.1.0 spec/support/active_model_versions.rb
challah-1.0.0.beta2 vendor/bundle/gems/shoulda-matchers-1.5.6/spec/support/active_model_versions.rb
challah-1.0.0.beta vendor/bundle/gems/shoulda-matchers-1.5.6/spec/support/active_model_versions.rb
shoulda-matchers-2.0.0 spec/support/active_model_versions.rb
shoulda-matchers-1.5.6 spec/support/active_model_versions.rb
shoulda-matchers-1.5.5 spec/support/active_model_versions.rb
shoulda-matchers-1.5.4 spec/support/active_model_versions.rb
shoulda-matchers-1.5.2 spec/support/active_model_versions.rb
shoulda-matchers-1.5.1 spec/support/active_model_versions.rb
shoulda-matchers-1.5.0 spec/support/active_model_versions.rb