Sha256: 3dac9c152822d9b25d40903542c0529d348a898577802a2c410f5d172e7968aa

Contents?: true

Size: 429 Bytes

Versions: 9

Compression:

Stored size: 429 Bytes

Contents

# frozen_string_literal: true
require 'test_helper'

class PolicyTest < Test::Unit::TestCase
  def setup
    super
    fake('shop')
  end

  def test_getting_the_list_of_policies
    fake('policies')

    policies = ShopifyAPI::Policy.all
    assert_equal(1, policies.length)

    policy = policies.first
    assert_equal('Privacy Policy', policy.title)
    assert_equal('Your privacy is important to us', policy.body)
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
shopify_api-9.5.2 test/policy_test.rb
ruby_shopify_api-1.2.0 test/policy_test.rb
ruby_shopify_api-1.1.0 test/policy_test.rb
ruby_shopify_api-1.0.0 test/policy_test.rb
shopify_api-9.5.1 test/policy_test.rb
shopify_api-9.5 test/policy_test.rb
shopify_api-9.4.1 test/policy_test.rb
shopify_api-9.4.0 test/policy_test.rb
shopify_api-9.3.0 test/policy_test.rb