Sha256: 5f3aaffa921eedcae68e79a4d0c68478c69277c16e4fa2efc5db1edb2beee94d

Contents?: true

Size: 553 Bytes

Versions: 4

Compression:

Stored size: 553 Bytes

Contents

# frozen_string_literal: true

require 'helper'
require 'vacuum/locale'
require 'vacuum/operation'

module Vacuum
  class TestOperation < Minitest::Test
    def setup
      @operation = Operation.new('Action', params: { foo: 1 }, locale: locale)
    end

    def test_body
      assert @operation.body
    end

    def test_url
      assert @operation.url
    end

    def test_headers
      assert @operation.headers
    end

    private

    def locale
      Locale.new(:us, access_key: '123', secret_key: '123', partner_tag: 'xyz')
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
vacuum-4.0.0 test/unit/test_operation.rb
vacuum-3.4.1 test/unit/test_operation.rb
vacuum-3.4.0 test/unit/test_operation.rb
vacuum-3.3.0 test/vacuum/test_operation.rb