Sha256: 1e74cdfc86a766327954a18cc4acc5f078e82003f5da5422bd69e61e50c363de

Contents?: true

Size: 1.13 KB

Versions: 35

Compression:

Stored size: 1.13 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
        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

35 entries across 35 versions & 6 rubygems

Version Path
cavalle-rspec-rails-1.2.2.0.1 lib/spec/rails/extensions/spec/runner/configuration.rb
cavalle-rspec-rails-1.2.2.0.2 lib/spec/rails/extensions/spec/runner/configuration.rb
cavalle-rspec-rails-1.2.3.1 lib/spec/rails/extensions/spec/runner/configuration.rb
cavalle-rspec-rails-1.2.4.0.1 lib/spec/rails/extensions/spec/runner/configuration.rb
dchelimsky-rspec-rails-1.1.99.1 lib/spec/rails/extensions/spec/runner/configuration.rb
dchelimsky-rspec-rails-1.1.99.13 lib/spec/rails/extensions/spec/runner/configuration.rb
dchelimsky-rspec-rails-1.1.99.2 lib/spec/rails/extensions/spec/runner/configuration.rb
dchelimsky-rspec-rails-1.1.99.3 lib/spec/rails/extensions/spec/runner/configuration.rb
dchelimsky-rspec-rails-1.1.99.4 lib/spec/rails/extensions/spec/runner/configuration.rb
dchelimsky-rspec-rails-1.1.99.5 lib/spec/rails/extensions/spec/runner/configuration.rb
dchelimsky-rspec-rails-1.1.99.6 lib/spec/rails/extensions/spec/runner/configuration.rb
dchelimsky-rspec-rails-1.1.99.7 lib/spec/rails/extensions/spec/runner/configuration.rb
dchelimsky-rspec-rails-1.1.99.8 lib/spec/rails/extensions/spec/runner/configuration.rb
dchelimsky-rspec-rails-1.1.99.9 lib/spec/rails/extensions/spec/runner/configuration.rb
exception2db-0.0.1 test/rspec-rails/lib/spec/rails/extensions/spec/runner/configuration.rb
rspec-rails-w-factory_girl-1.3.2.1 lib/spec/rails/extensions/spec/runner/configuration.rb
rspec-rails-w-factory_girl-1.3.2 lib/spec/rails/extensions/spec/runner/configuration.rb
rspec-rails-1.3.2 lib/spec/rails/extensions/spec/runner/configuration.rb
rspec-rails-1.3.1 lib/spec/rails/extensions/spec/runner/configuration.rb
rspec-rails-1.3.0 lib/spec/rails/extensions/spec/runner/configuration.rb