Sha256: 3d37ac7d013a63cc7afe3b64eafec533b66190b67b651bc43d24ab0d3f672626

Contents?: true

Size: 766 Bytes

Versions: 8

Compression:

Stored size: 766 Bytes

Contents

require 'spec_helper'

describe Voog do
  
  describe '.configure' do
    
    it 'sets host' do
      Voog.configure do |config|
        config.host = 'voog.local'
      end
      
      expect(Voog.host).to eq('voog.local')
    end
    
    it 'sets api token' do
      Voog.configure do |config|
        config.api_token = 'afcf30182aecfc8155d390d7d4552d14'
      end
      
      expect(Voog.api_token).to eq('afcf30182aecfc8155d390d7d4552d14')
    end
  end

  describe '.client' do
    
    before do
      Voog.configure do |config|
        config.host = 'voog.local'
        config.api_token = 'afcf30182aecfc8155d390d7d4552d14'
      end
    end
    
    it 'creates Voog::Client' do
      expect(Voog.client).to be_kind_of(Voog::Client)
    end
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
voog_api-0.0.16 spec/voog_spec.rb
voog_api-0.0.15 spec/voog_spec.rb
voog_api-0.0.14 spec/voog_spec.rb
voog_api-0.0.13 spec/voog_spec.rb
voog_api-0.0.12 spec/voog_spec.rb
voog_api-0.0.11 spec/voog_spec.rb
voog_api-0.0.10 spec/voog_spec.rb
voog_api-0.0.7 spec/voog_spec.rb