Sha256: 6e03a77acbae6173478c5631a3c98a0bd40e04773902bc1218aa576734233fc8

Contents?: true

Size: 745 Bytes

Versions: 3

Compression:

Stored size: 745 Bytes

Contents

# frozen_string_literal: true

describe 'Plugin(:toml) .values_file / #load_from_file (shared behavior)', plugin: :toml 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"
[test]
<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/plugins/toml/load_setting_values_from_file/shared_behavior_spec.rb
qonfig-0.27.0 spec/features/plugins/toml/load_setting_values_from_file/shared_behavior_spec.rb
qonfig-0.26.0 spec/features/plugins/toml/load_setting_values_from_file/shared_behavior_spec.rb