Sha256: b49e8417162b76b8b331c0efa127d82e5f21a0b6b497d33f3ef92c099997038e

Contents?: true

Size: 1 KB

Versions: 14

Compression:

Stored size: 1 KB

Contents

module RSpec
  module Rails
    if defined?(ActiveRecord)
      module FixtureSupport
        extend ActiveSupport::Concern

        include RSpec::Rails::SetupAndTeardownAdapter
        include RSpec::Rails::TestUnitAssertionAdapter
        include ActiveRecord::TestFixtures

        included do
          self.fixture_path = RSpec.configuration.fixture_path
          self.use_transactional_fixtures = RSpec.configuration.use_transactional_fixtures
          self.use_instantiated_fixtures  = RSpec.configuration.use_instantiated_fixtures
          fixtures RSpec.configuration.global_fixtures if RSpec.configuration.global_fixtures
        end
      end

      RSpec.configure do |c|
        c.include RSpec::Rails::FixtureSupport
        c.add_setting :use_transactional_fixtures
        c.add_setting :use_transactional_examples, :alias => :use_transactional_fixtures
        c.add_setting :use_instantiated_fixtures
        c.add_setting :global_fixtures
        c.add_setting :fixture_path
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rspec-rails-2.6.1 lib/rspec/rails/fixture_support.rb
rspec-rails-2.6.1.beta1 lib/rspec/rails/fixture_support.rb
rspec-rails-2.6.0 lib/rspec/rails/fixture_support.rb
rspec-rails-2.6.0.rc6 lib/rspec/rails/fixture_support.rb
rspec-rails-2.6.0.rc4 lib/rspec/rails/fixture_support.rb
rspec-rails-2.6.0.rc2 lib/rspec/rails/fixture_support.rb
rspec-rails-2.5.0 lib/rspec/rails/fixture_support.rb
rspec-rails-2.4.1 lib/rspec/rails/fixture_support.rb
rspec-rails-2.4.0 lib/rspec/rails/fixture_support.rb
rspec-rails-2.3.1 lib/rspec/rails/fixture_support.rb
rspec-rails-2.3.0 lib/rspec/rails/fixture_support.rb
rspec-rails-2.2.1 lib/rspec/rails/fixture_support.rb
rspec-rails-2.2.0 lib/rspec/rails/fixture_support.rb
rspec-rails-2.1.0 lib/rspec/rails/fixture_support.rb