Sha256: 1682ad367b8b3f3a2356fd795358cbd2bbcc49eebfcd4e83744240e7a786324b

Contents?: true

Size: 1.07 KB

Versions: 8

Compression:

Stored size: 1.07 KB

Contents

# This file is copied to ~/spec when you run 'ruby script/generate rspec'
# from the project root directory.
ENV["RAILS_ENV"] ||= 'test'
require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT)
#require 'enumerated_attribute'
require 'spec/autorun'
gem 'rspec-rails', '>= 1.3.2'
require 'spec/rails'
gem 'webrat', '>= 0.7.1'
require 'webrat'
require 'matchers'

# Requires supporting files with custom matchers and macros, etc,
# in ./support/ and its subdirectories.
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}

Webrat.configure do |config|
	config.mode = :rails
end
	
Spec::Runner.configure do |config|
end

#setup for integrating webrat with rspec
module Spec::Rails::Example
  class IntegrationExampleGroup < ActionController::IntegrationTest
    
    def initialize(defined_description, options={}, &implementation)
      defined_description.instance_eval do
        def to_s
          self
        end
      end
      super(defined_description)
    end
    
    Spec::Example::ExampleGroupFactory.register(:integration, self)
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
edave-enumerated_attribute-0.2.18 spec/rails/spec/spec_helper.rb
enumerated_attribute-0.2.16 spec/rails/spec/spec_helper.rb
enumerated_attribute-0.2.13 spec/rails/spec/spec_helper.rb
enumerated_attribute-0.2.12 spec/rails/spec/spec_helper.rb
enumerated_attribute-0.2.11 spec/rails/spec/spec_helper.rb
enumerated_attribute-0.2.10 spec/rails/spec/spec_helper.rb
enumerated_attribute-0.2.8 spec/rails/spec/spec_helper.rb
enumerated_attribute-0.2.7 spec/rails/spec/spec_helper.rb