Sha256: a12d791d1ab2c82a8f92a11762c8b91a9669cfe1409e9362b92ceb5df3c9952e

Contents?: true

Size: 536 Bytes

Versions: 15

Compression:

Stored size: 536 Bytes

Contents

require 'spec_helper'

describe Emojidex::Client do

  describe 'initialize' do
    it 'sets default host' do
      client = Emojidex::Client.new
      expect(client.host).to eq 'https://www.emojidex.com/'
    end

    it 'sets custom host' do
      client = Emojidex::Client.new(host: 'example.com')
      expect(client.host).to eq 'example.com'
    end
  end

  describe 'user_agent' do
    it 'sets user_agent' do
      client = Emojidex::Client.new
      expect(client.user_agent).to eq 'Emojidex Toolkit Client'
    end
  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
emojidex-0.0.23 spec/client_spec.rb
emojidex-0.0.22 spec/client_spec.rb
emojidex-0.0.21 spec/client_spec.rb
emojidex-0.0.20 spec/client_spec.rb
emojidex-0.0.19 spec/client_spec.rb
emojidex-0.0.18 spec/client_spec.rb
emojidex-0.0.17 spec/client_spec.rb
emojidex-0.0.16 spec/client_spec.rb
emojidex-0.0.15 spec/client_spec.rb
emojidex-0.0.14 spec/client_spec.rb
emojidex-0.0.13 spec/client_spec.rb
emojidex-0.0.12 spec/client_spec.rb
emojidex-0.0.11 spec/client_spec.rb
emojidex-0.0.10 spec/client_spec.rb
emojidex-0.0.9 spec/client_spec.rb