Module: Sqlite::TestHelper
- Included in:
- SqliteTestHook, SqliteValidationHook
- Defined in:
- lib/helpers.rb
Instance Method Summary collapse
Instance Method Details
#load_tests(test) ⇒ Object
14 15 16 17 18 |
# File 'lib/helpers.rb', line 14 def load_tests(test) tests = YAML.load test tests = [tests] unless tests.kind_of? Array tests.map(&:to_struct) end |
#set_test_parsers_hash ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/helpers.rb', line 4 def set_test_parsers_hash @test_parsers = { query: Sqlite::QueryTestParser, display: Sqlite::DisplayTestParser, datasets: Sqlite::DatasetTestParser, final_dataset: Sqlite::FinalDatasetTestParser, } @test_parsers.default = Sqlite::InvalidTestParser end |