Sha256: 88bf4c7412917071dbb8642ae83d4ff958b08c3bbb95b8c94040b0de21440fe1

Contents?: true

Size: 528 Bytes

Versions: 7

Compression:

Stored size: 528 Bytes

Contents

require 'spec_helper'

describe Conekta do
  describe ".config" do
    it "sets the api key initializer style" do
      Conekta.config { |c| c.api_key = "abc" }

      expect(Conekta.api_key).to eq("abc")
    end

    it "sets the api version initializer style" do
      Conekta.config { |c| c.api_version = "1.0" }

      expect(Conekta.api_version).to eq("1.0")
    end

    it "sets the api locale initializer style" do
      Conekta.config { |c| c.locale = "es" }

      expect(Conekta.locale).to eq("es")
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
conekta-1.0.0 spec/conekta_spec.rb
conekta-0.5.8 spec/conekta_spec.rb
conekta-0.5.7 spec/conekta_spec.rb
conekta-0.5.6 spec/conekta_spec.rb
conekta-0.5.5 spec/conekta_spec.rb
conekta-0.5.4 spec/conekta_spec.rb
conekta-0.5.3 spec/conekta_spec.rb