Sha256: 805b243e25e4af2eb6a645efe2c8b3069eed6d6c9dac297461a498063000a816

Contents?: true

Size: 394 Bytes

Versions: 58

Compression:

Stored size: 394 Bytes

Contents

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

58 entries across 58 versions & 1 rubygems

Version Path
shopify_api-4.3.2 test/policy_test.rb
shopify_api-4.3.1 test/policy_test.rb
shopify_api-4.3.0 test/policy_test.rb
shopify_api-4.2.2 test/policy_test.rb
shopify_api-4.2.1 test/policy_test.rb
shopify_api-4.2.0 test/policy_test.rb
shopify_api-4.1.1 test/policy_test.rb
shopify_api-4.1.0 test/policy_test.rb
shopify_api-4.0.7 test/policy_test.rb
shopify_api-4.0.6 test/policy_test.rb
shopify_api-4.0.5 test/policy_test.rb
shopify_api-4.0.4 test/policy_test.rb
shopify_api-4.0.3 test/policy_test.rb
shopify_api-4.0.2 test/policy_test.rb
shopify_api-4.0.1 test/policy_test.rb
shopify_api-4.0.0 test/policy_test.rb
shopify_api-3.2.7 test/policy_test.rb
shopify_api-3.2.6 test/policy_test.rb