Sha256: 7120ab137335db740f54b81d839dbd4860f47dc4ef6da551eb3c74d56c43e506
Contents?: true
Size: 1.05 KB
Versions: 7
Compression:
Stored size: 1.05 KB
Contents
# This file is copied to ~/spec when you run 'ruby script/generate rspec' # from the project root directory. ENV["RAILS_ENV"] ||= 'test' ENV['RAILS_ROOT'] ||= File.dirname(__FILE__) + '/rails_root' require File.expand_path(File.join(ENV['RAILS_ROOT'], 'config/environment.rb')) require 'rubygems' gem "test-unit" require 'test/unit' class Test::Unit::TestCase class << self def inherited(sub_class) super DESCENDANTS << sub_class end alias_method :inherited_without_test_unit_gem_inherited_fix, :inherited alias_method :inherited, :inherited_without_test_unit_gem_inherited_fix end end require 'spec' require 'spec/rails' require 'spec/autorun' $LOAD_PATH.unshift(File.expand_path("#{File.dirname(__FILE__)}/../lib")) require "jelly" Spec::Runner.configure do |configuration| end class Spec::ExampleGroup include ActionController::TestProcess end # This is here to allow you to integrate views on all of your controller specs Spec::Runner.configuration.before(:all, :behaviour_type => :controller) do @integrate_views = false end
Version data entries
7 entries across 7 versions & 3 rubygems