Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tag: v2.0.0.beta.15
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (27 sloc) 1.076 kB
module RSpec
module Rails
module FixtureSupport
extend ActiveSupport::Concern
include RSpec::Rails::SetupAndTeardownAdapter
include RSpec::Rails::TestUnitAssertionAdapter
included do
if RSpec.configuration.use_transactional_fixtures
# TODO - figure out how to move this outside the included block
include ActiveRecord::TestFixtures
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
end
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
Jump to Line
Something went wrong with that request. Please try again.