Class: EacRubyGemSupport::Rspec::SourceTargetFixturesController

Inherits:
Object
  • Object
show all
Defined in:
lib/eac_ruby_gem_support/rspec/source_target_fixtures_controller.rb

Instance Method Summary collapse

Instance Method Details

#fixtures_dirObject



10
11
12
13
14
15
16
# File 'lib/eac_ruby_gem_support/rspec/source_target_fixtures_controller.rb', line 10

def fixtures_dir
  if example.respond_to?(:fixtures_dir)
    example.fixtures_dir
  else
    spec_paths_controller.fixtures_directory
  end
end

#write_target_fixtures?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/eac_ruby_gem_support/rspec/source_target_fixtures_controller.rb', line 18

def write_target_fixtures?
  ENV['WRITE_TARGET_FIXTURES'].to_bool
end