Sha256: f00b7af2d8f6df1db4d3c22e1e6eb32fa9ead4b17ea539a0778e76b99531cfde

Contents?: true

Size: 957 Bytes

Versions: 3

Compression:

Stored size: 957 Bytes

Contents

# frozen_string_literal: true

require_relative 'by_macros_examples'
require_relative 'by_instance_method_examples'

describe 'Load setting values from YAML file' do
  describe 'DSL macros (Qonfig::DataSet.values_file)' do
    it_behaves_like 'load setting values from file by macros',
                    file_name: SpecSupport.fixture_path('values_file', 'without_env.yml'),
                    file_with_env_name: SpecSupport.fixture_path('values_file', 'with_env.yml'),
                    file_format: :yaml
  end

  describe 'Instance methods (Qonfig::DataSet#load_from_file/.load_from_yaml' do
    it_behaves_like 'load setting values from file by instance methods',
                    file_name: SpecSupport.fixture_path('values_file', 'without_env.yml'),
                    file_with_env_name: SpecSupport.fixture_path('values_file', 'with_env.yml'),
                    load_by: :load_from_yaml,
                    file_format: :yaml
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
qonfig-0.28.0 spec/features/load_setting_values_from_file/load_from_yaml_spec.rb
qonfig-0.27.0 spec/features/load_setting_values_from_file/load_from_yaml_spec.rb
qonfig-0.26.0 spec/features/load_setting_values_from_file/load_from_yaml_spec.rb