Sha256: dc7d0e2f734bfcf70c125b6eac2d59d47ec1920182958539c0b06aa4950c49ba

Contents?: true

Size: 756 Bytes

Versions: 3

Compression:

Stored size: 756 Bytes

Contents

# frozen_string_literal: true

describe '#expose_self => format: <unsupported>' do
  specify 'fails on unsupported formats' do
    expect do
      Class.new(Qonfig::DataSet) do
        expose_self env: :production, format: :atata
      end
    end.to raise_error(Qonfig::UnsupportedLoaderFormatError)
  end

  specify 'fails on empty format parameter' do
    expect do
      Class.new(Qonfig::DataSet) do
        expose_self env: :production, format: ''
      end
    end.to raise_error(Qonfig::UnsupportedLoaderFormatError)
  end

  specify 'fails on incorrect format parameter' do
    expect do
      Class.new(Qonfig::DataSet) do
        expose_self env: :production, format: Object.new
      end
    end.to raise_error(Qonfig::ArgumentError)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
qonfig-0.28.0 spec/features/expose_self/format_option_unsupported_spec.rb
qonfig-0.27.0 spec/features/expose_self/format_option_unsupported_spec.rb
qonfig-0.26.0 spec/features/expose_self/format_option_unsupported_spec.rb