Sha256: c054e465b77d3fa465c6b3de9254b6e47fca949f04e115295052dcf0f99696bf

Contents?: true

Size: 784 Bytes

Versions: 9

Compression:

Stored size: 784 Bytes

Contents

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

RSpec.configure do |config|
  config.include RspecTagMatchers
  config.include CustomMacros
  config.mock_with :rspec
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
    # Configure the default encoding used in templates for Ruby 1.9.
    config.encoding = "utf-8"
    config.active_support.deprecation = :stderr
    config.secret_key_base = "secret"
    config.eager_load = false
  end
end
FormtasticTest::Application.initialize!

require 'rspec/rails'

# Quick hack to avoid the 'Spec' deprecation warnings from rspec_tag_matchers
module Spec
  include RSpec
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
formtastic-3.1.5 spec/support/test_environment.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/formtastic-3.1.4/spec/support/test_environment.rb
formtastic-3.1.4 spec/support/test_environment.rb
formtastic-3.1.3 spec/support/test_environment.rb
formtastic-3.1.2 spec/support/test_environment.rb
formtastic-3.1.1 spec/support/test_environment.rb
formtastic-3.1.0 spec/support/test_environment.rb
formtastic-3.1.0.rc2 spec/support/test_environment.rb
formtastic-3.1.0.rc1 spec/support/test_environment.rb