Module: EacRailsGemSupport::Rspec::Setup::Fixtures
- Defined in:
- lib/eac_rails_gem_support/rspec/setup/fixtures.rb
Instance Method Summary collapse
Instance Method Details
#fixtures_path ⇒ Object
9 10 11 12 13 14 |
# File 'lib/eac_rails_gem_support/rspec/setup/fixtures.rb', line 9 def fixtures_path [ app_root_path.join('spec', 'fixtures'), app_root_path.join('test', 'fixtures') ].find(&:directory?) end |
#setup_fixtures ⇒ Object
16 17 18 19 20 21 |
# File 'lib/eac_rails_gem_support/rspec/setup/fixtures.rb', line 16 def setup_fixtures rspec_config.use_transactional_fixtures = true fixtures_path.if_present do |v| rspec_config.fixture_path = v end end |