Sha256: 77159b11d2a32a5c153ef452ecc58f71b6c2ec279348e0a45fd0039b7101a96b

Contents?: true

Size: 875 Bytes

Versions: 12

Compression:

Stored size: 875 Bytes

Contents

shared_context "API 2.0.0" do
  before(:all) do
    Conekta.api_version = "2.0.0"
  end

  after(:all) do
    Conekta.api_version = "1.0.0"
  end
end

shared_context "API 1.0.0" do
  before(:all) do
    Conekta.api_version = "1.0.0"
  end

  after(:all) do
    Conekta.api_version = "2.0.0"
  end
end

shared_context "order" do
  let(:line_items) do
    [{
       name: "Box of Cohiba S1s",
       description: "Imported From Mex.",
       unit_price: 35000,
       quantity: 1,
       tags: ["food", "mexican food"],
       type: "physical"
     }]
  end

  let(:order_data) do
    {
      currency:   'mxn',
      line_items: line_items
    }
  end
end

shared_context "customer" do
  let(:customer_data) do
    {
      email:   "hola@hola.com",
      name:    "John Constantine",
      payment_sources:  [ { token_id: "tok_test_visa_4242", type: "card" }]
    }
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
conekta-2.6.0 spec/support/shared_context.rb
conekta-tiempometa-2.4.2 spec/support/shared_context.rb
conekta-2.5.0 spec/support/shared_context.rb
conekta-2.4.2 spec/support/shared_context.rb
conekta-2.4.1 spec/support/shared_context.rb
conekta-2.4.0 spec/support/shared_context.rb
conekta-2.3.0 spec/support/shared_context.rb
conekta-2.0.0 spec/support/shared_context.rb
conekta-1.1.3 spec/support/shared_context.rb
conekta-1.1.2 spec/support/shared_context.rb
conekta-1.1.1 spec/support/shared_context.rb
conekta-1.1.0 spec/support/shared_context.rb