Sha256: c95667d111d587a56f6e7f175b37d631958606281999ea8e9c7ae26300fb37cf

Contents?: true

Size: 414 Bytes

Versions: 3

Compression:

Stored size: 414 Bytes

Contents

# frozen_string_literal: true

describe 'Load from self (non-hash-like __END__ data representation)' do
  specify 'fails when yaml data is not represented as a hash' do
    class IncompatibleSelfDataConfig < Qonfig::DataSet
      load_from_self
    end

    expect { IncompatibleSelfDataConfig.new }.to raise_error(
      Qonfig::IncompatibleEndDataStructureError
    )
  end
end

__END__

- user
- password
- 123

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
qonfig-0.28.0 spec/features/load_from_self/with_non_hash_like_data_representation_spec.rb
qonfig-0.27.0 spec/features/load_from_self/with_non_hash_like_data_representation_spec.rb
qonfig-0.26.0 spec/features/load_from_self/with_non_hash_like_data_representation_spec.rb