Sha256: e670154ea8a0df3ef6b929e5b3a8b7e7c59e265aa554cb6d1f4cb75465da4a9c

Contents?: true

Size: 893 Bytes

Versions: 6

Compression:

Stored size: 893 Bytes

Contents

require 'spec_helper'

describe A2z::Client do
  describe '#initialize' do
    subject do
      A2z::Client
    end
    
    context 'when country is not specified' do
      specify { expect { subject.new }.to_not raise_error }
    end
    
    context 'when country is valid' do
      specify { expect { subject.new(country: :us) }.to_not raise_error }
    end
    
    context 'when country is invalid' do
      specify { expect { subject.new(country: :fake) }.to raise_error }
    end
  end
  
  describe '#country=' do
    it 'should succeed'
  end
  
  describe '#country' do
    it 'should succeed'
  end
  
  describe '#tag' do
    it 'should succeed'
  end
  
  describe '#item_search' do
    subject do
      A2z::Client.new
    end
    
    it 'should succeed'
  end
  
  describe '#item_lookup' do
    subject do
      A2z::Client.new
    end
    
    it 'should succeed'
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
a2z-0.1.1 spec/a2z/client_spec.rb
a2z-0.1.0 spec/a2z/client_spec.rb
a2z-0.0.4 spec/a2z/client_spec.rb
a2z-0.0.3 spec/a2z/client_spec.rb
a2z-0.0.2 spec/a2z/client_spec.rb
a2z-0.0.1 spec/a2z/client_spec.rb