Module: NewspaperWorksFixtures

Defined in:
lib/newspaper_works_fixtures.rb,
lib/newspaper_works_fixtures/engine.rb,
lib/newspaper_works_fixtures/version.rb

Overview

Newspaper works modules

Defined Under Namespace

Classes: Engine

Constant Summary collapse

GEM_PATH =

module constants:

Gem::Specification.find_by_name("newspaper_works_fixtures").gem_dir
VERSION =
'0.1.0'.freeze

Class Method Summary collapse

Class Method Details

.file_fixturesObject

returns the full path to the fixture files dir



11
12
13
# File 'lib/newspaper_works_fixtures.rb', line 11

def self.file_fixtures
  File.join(root, 'spec', 'fixtures', 'files')
end

.ndnp_chronam_batchObject

returns the full path to the NDNP sample batch



16
17
18
# File 'lib/newspaper_works_fixtures.rb', line 16

def self.ndnp_chronam_batch
  File.join(file_fixtures, 'ndnp', 'batch_test_ver01')
end

.ndnp_local_batchObject

returns the full path to the NDNP local batch



21
22
23
# File 'lib/newspaper_works_fixtures.rb', line 21

def self.ndnp_local_batch
  File.join(file_fixtures, 'ndnp', 'batch_local')
end

.rootObject

returns the full path the the gem installation



6
7
8
# File 'lib/newspaper_works_fixtures.rb', line 6

def self.root
  @root ||= File.expand_path(File.dirname(File.dirname(__FILE__)))
end