Module: EacRailsGemSupport::Rspec::Setup::Fixtures
- Defined in:
- lib/eac_rails_gem_support/rspec/setup/fixtures.rb
Instance Method Summary collapse
Instance Method Details
#fixture_paths ⇒ Enumerable<Pathname>
8 9 10 11 12 13 |
# File 'lib/eac_rails_gem_support/rspec/setup/fixtures.rb', line 8 def fixture_paths [ app_root_path.join('spec', 'fixtures'), app_root_path.join('test', 'fixtures') ].select(&:directory?) end |
#setup_fixtures ⇒ void
This method returns an undefined value.
16 17 18 19 20 |
# File 'lib/eac_rails_gem_support/rspec/setup/fixtures.rb', line 16 def setup_fixtures rspec_config.use_transactional_fixtures = true rspec_config.fixture_paths ||= [] rspec_config.fixture_paths += fixture_paths end |