Class: EacRubyGemSupport::Rspec::SourceTargetFixturesController
- Inherits:
-
Object
- Object
- EacRubyGemSupport::Rspec::SourceTargetFixturesController
- Defined in:
- lib/eac_ruby_gem_support/rspec/source_target_fixtures_controller.rb
Instance Method Summary collapse
Instance Method Details
#fixtures_dir ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/eac_ruby_gem_support/rspec/source_target_fixtures_controller.rb', line 13 def fixtures_dir if example.respond_to?(:fixtures_dir) example.fixtures_dir else spec_paths_controller.fixtures_directory end end |
#write_target_fixtures? ⇒ Boolean
21 22 23 |
# File 'lib/eac_ruby_gem_support/rspec/source_target_fixtures_controller.rb', line 21 def write_target_fixtures? ENV['WRITE_TARGET_FIXTURES'].to_bool end |