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