Sha256: 5739946702bfd51452161ce74e1be905c3108e2e60ac80a42da12af992565d10

Contents?: true

Size: 464 Bytes

Versions: 1

Compression:

Stored size: 464 Bytes

Contents

require 'spec_helper'

describe MinatoRubyApiClient do
  describe '.configure' do
    context 'when no block is given' do
      it 'returns the default configuration' do
        expect(MinatoRubyApiClient.configure).to eq MinatoRubyApiClient::Configuration.default
      end
    end

    context 'when a block is given' do
      it 'yields the configuration' do
        expect { |b| MinatoRubyApiClient.configure(&b) }.to yield_control
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
minato_ruby_api_client-0.2.2 spec/minato_ruby_api_client_spec.rb