Sha256: af972359d54f025e046ca9e21cd91f807aecc5fc4207ece31f32d9029a087489

Contents?: true

Size: 1.19 KB

Versions: 5

Compression:

Stored size: 1.19 KB

Contents

require 'spec/runner/configuration'
require 'test_help'

if defined?(ActiveRecord::Base)
  module Spec
    module Runner
      class Configuration
      
        def initialize
          super
          self.fixture_path = RAILS_ROOT + '/spec/fixtures'
        end

        def use_transactional_fixtures
          ActiveSupport::TestCase.use_transactional_fixtures
        end
        def use_transactional_fixtures=(value)
          ActiveSupport::TestCase.use_transactional_fixtures = value
        end

        def use_instantiated_fixtures
          ActiveSupport::TestCase.use_instantiated_fixtures
        end
        def use_instantiated_fixtures=(value)
          ActiveSupport::TestCase.use_instantiated_fixtures = value
        end

        def fixture_path
          ActiveSupport::TestCase.fixture_path
        end
        def fixture_path=(path)
          ActiveSupport::TestCase.fixture_path = path
          ActionController::IntegrationTest.fixture_path = path
        end

        def global_fixtures
          ActiveSupport::TestCase.fixture_table_names
        end
        def global_fixtures=(fixtures)
          ActiveSupport::TestCase.fixtures(*fixtures)
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 3 rubygems

Version Path
radiant-1.0.0 ruby-debug/ruby/1.8/gems/rspec-rails-1.3.4/lib/spec/rails/extensions/spec/runner/configuration.rb
richzhou-rspec-rails-1.3.4 lib/spec/rails/extensions/spec/runner/configuration.rb
rspec-rails-1.3.4 lib/spec/rails/extensions/spec/runner/configuration.rb
rspec-rails-1.3.3 lib/spec/rails/extensions/spec/runner/configuration.rb
rspec-rails-1.3.3.rc lib/spec/rails/extensions/spec/runner/configuration.rb