Sha256: f19022a8e8ad9ccd644a14ca3636323cf9c3523e3a71a8086b188e7cf2f51ddc

Contents?: true

Size: 1.61 KB

Versions: 4

Compression:

Stored size: 1.61 KB

Contents

require_relative 'support/unit/load_environment'

require 'rspec/rails'
require 'shoulda-matchers'

require 'spec_helper'

Dir[ File.join(File.expand_path('../support/unit/**/*.rb', __FILE__)) ].sort.each do |file|
  require file
end

RSpec.configure do |config|
  UnitTests::ActiveModelHelpers.configure_example_group(config)
  UnitTests::ActiveModelVersions.configure_example_group(config)
  UnitTests::ActiveResourceBuilder.configure_example_group(config)
  UnitTests::ClassBuilder.configure_example_group(config)
  UnitTests::ControllerBuilder.configure_example_group(config)
  UnitTests::I18nFaker.configure_example_group(config)
  UnitTests::MailerBuilder.configure_example_group(config)
  UnitTests::ModelBuilder.configure_example_group(config)
  UnitTests::RailsVersions.configure_example_group(config)
  UnitTests::ActiveRecordVersions.configure_example_group(config)
  UnitTests::ActiveModelVersions.configure_example_group(config)
  UnitTests::DatabaseHelpers.configure_example_group(config)
  UnitTests::ColumnTypeHelpers.configure_example_group(config)
  UnitTests::ValidationMatcherScenarioHelpers.configure_example_group(config)

  config.include UnitTests::Matchers

  config.infer_spec_type_from_file_location!
  config.example_status_persistence_file_path = "spec/examples.txt"
  config.alias_it_behaves_like_to(:it_supports, "it supports")

  config.before(:all, type: :controller) do
    self.class.controller(ApplicationController) { }
  end
end

ActiveSupport::Deprecation.behavior = :stderr

Shoulda::Matchers.configure do |config|
  config.integrate do |with|
    with.test_framework :rspec
    with.library :rails
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
shoulda-matchers-3.1.3 spec/unit_spec_helper.rb
shoulda-matchers-3.1.2 spec/unit_spec_helper.rb
shoulda-matchers-3.1.1 spec/unit_spec_helper.rb
shoulda-matchers-3.1.0 spec/unit_spec_helper.rb