Sha256: f9f42b8040125d6347bdda2c9ed2b4679495c676b7d3dacf1c663dcd2c178911

Contents?: true

Size: 1.5 KB

Versions: 4

Compression:

Stored size: 1.5 KB

Contents

# encoding: utf-8
require 'rspec/core'

require 'rspec-dom-testing'

RSpec.configure do |config|
  config.include CustomMacros
  config.include RSpec::Dom::Testing::Matchers
  config.mock_with :rspec

  # rspec-rails 3 will no longer automatically infer an example group's spec type
  # from the file location. You can explicitly opt-in to the feature using this
  # config option.
  # To explicitly tag specs without using automatic inference, set the `:type`
  # metadata manually:
  #
  #     describe ThingsController, :type => :controller do
  #       # Equivalent to being in spec/controllers
  #     end
  config.infer_spec_type_from_file_location!

  # Setting this config option `false` removes rspec-core's monkey patching of the
  # top level methods like `describe`, `shared_examples_for` and `shared_context`
  # on `main` and `Module`. The methods are always available through the `RSpec`
  # module like `RSpec.describe` regardless of this setting.
  # For backwards compatibility this defaults to `true`.
  #
  # https://relishapp.com/rspec/rspec-core/v/3-0/docs/configuration/global-namespace-dsl
  config.expose_dsl_globally = false
end

require "action_controller/railtie"
require 'active_model'

# Create a simple rails application for use in testing the viewhelper
module FormtasticTest
  class Application < Rails::Application
    config.active_support.deprecation = :stderr
    config.secret_key_base = "secret"
    config.eager_load = false
  end
end
FormtasticTest::Application.initialize!

require 'rspec/rails'

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/formtastic-4.0.0/spec/support/test_environment.rb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/formtastic-4.0.0/spec/support/test_environment.rb
formtastic-4.0.0 spec/support/test_environment.rb
formtastic-4.0.0.rc1 spec/support/test_environment.rb