Sha256: 641aa8b27329b917301ab554edb4a12894cd5f7941c071575064e60ea083f970

Contents?: true

Size: 709 Bytes

Versions: 3

Compression:

Stored size: 709 Bytes

Contents

# frozen_string_literal: true

describe '.values_file / #load_from_file (shared behavior)' do
  describe 'unsupported format failures' do
    describe 'DSL macros' do
      specify 'fails on unsupported format' do
        expect do
          Qonfig::DataSet.build do
            values_file :self
          end
        end.to raise_error(Qonfig::DynamicLoaderParseError)
      end
    end

    describe 'Instance method' do
      specify 'fails on unsupported format' do
        expect do
          Qonfig::DataSet.build.load_from_self
        end.to raise_error(Qonfig::DynamicLoaderParseError)
      end
    end
  end
end

__END__

user: 0exp
ASDF|"asSDF"
<xml>
  <data>
    <key>123</key>
  </data>
</xml>

Version data entries

3 entries across 3 versions & 1 rubygems

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