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
-
.file_fixtures ⇒ Object
returns the full path to the fixture files dir.
-
.ndnp_chronam_batch ⇒ Object
returns the full path to the NDNP sample batch.
-
.ndnp_local_batch ⇒ Object
returns the full path to the NDNP local batch.
-
.root ⇒ Object
returns the full path the the gem installation.
Class Method Details
.file_fixtures ⇒ Object
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_batch ⇒ Object
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_batch ⇒ Object
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 |
.root ⇒ Object
returns the full path the the gem installation
6 7 8 |
# File 'lib/newspaper_works_fixtures.rb', line 6 def self.root @root ||= File.(File.dirname(File.dirname(__FILE__))) end |