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



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

Returns:

  • (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