Sha256: 7e13911dd2f7c4912e6f116d02c82d02966b049879190b0a96ad1fb328de3ceb

Contents?: true

Size: 711 Bytes

Versions: 7

Compression:

Stored size: 711 Bytes

Contents

# encoding: utf-8
require 'rspec'
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
  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

7 entries across 7 versions & 1 rubygems

Version Path
formtastic-2.2.1 spec/support/test_environment.rb
formtastic-2.2.0 spec/support/test_environment.rb
formtastic-2.2.0.rc spec/support/test_environment.rb
formtastic-2.1.1 spec/support/test_environment.rb
formtastic-2.1.0 spec/support/test_environment.rb
formtastic-2.1.0.rc spec/support/test_environment.rb
formtastic-2.1.0.beta1 spec/support/test_environment.rb