Module: Datum
- Included in:
- ActiveSupport::TestCase
- Defined in:
- lib/datum.rb,
lib/datum/datum.rb,
lib/datum/helpers.rb,
lib/datum/railtie.rb,
lib/datum/version.rb,
lib/datum/container.rb
Overview
Datum is a flexible data-driven test solution for Rails.
Datum’s primary features include defining data-driven tests via the data_test method and Scenarios, a load-on-demand mechanism for seeding the test database.
Defined Under Namespace
Class Attribute Summary collapse
-
.containers ⇒ Hash
readonly
Hash of all loaded Containers.
-
.data_path ⇒ Pathname
readonly
Fully qualified path for the datum/data directory.
-
.path ⇒ Pathname
readonly
Fully qualified path for the root of datum directory.
-
.scenario_path ⇒ Pathname
readonly
Fully qualified path for the datum/scenarios directory.
Instance Attribute Summary collapse
- #container ⇒ Object readonly
- #datum_id ⇒ Object readonly
- #test_method_name ⇒ Object readonly
Class Attribute Details
.containers ⇒ Hash (readonly)
Hash of all loaded Containers
37 |
# File 'lib/datum.rb', line 37 def containers; @@all_containers ||= {}; end |
.data_path ⇒ Pathname (readonly)
Fully qualified path for the datum/data directory
27 |
# File 'lib/datum.rb', line 27 def data_path; @@data_path ||= ::Datum.path.join('data'); end |
.path ⇒ Pathname (readonly)
Fully qualified path for the root of datum directory
22 |
# File 'lib/datum.rb', line 22 def path; @@datum_path ||= Rails.root.join('test', 'datum'); end |
Instance Attribute Details
#container ⇒ Object (readonly)
|
# File 'lib/datum/datum.rb', line 13
|
#datum_id ⇒ Object (readonly)
|
# File 'lib/datum/datum.rb', line 7
|
#test_method_name ⇒ Object (readonly)
|
# File 'lib/datum/datum.rb', line 10
|