Sha256: 59f448dee8b8a8a55bdbfffa406580b11b177ea41bcda02344960c1cf668ffd6

Contents?: true

Size: 579 Bytes

Versions: 2

Compression:

Stored size: 579 Bytes

Contents

require "spec_helper"

RSpec.describe Veeqo::Configuration do
  describe ".configuration" do
    it "returns the client configuration object" do
      veeqo_api_host = "api.veeqo.com"
      configuration = Veeqo.configuration

      expect(configuration.api_host).to eq(veeqo_api_host)
    end
  end

  describe ".configure" do
    it "allows user to cofigure their keys" do
      veeqo_api_key = "VEEQO_API_KEY"

      Veeqo.configure do |config|
        config.api_key = veeqo_api_key
      end

      expect(Veeqo.configuration.api_key).to eq(veeqo_api_key)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
veeqo-0.1.1 spec/veeqo/configuration_spec.rb
veeqo-0.1.0 spec/veeqo/configuration_spec.rb