policy_test.rb 429 B

1234567891011121314151617181920
  1. # frozen_string_literal: true
  2. require 'test_helper'
  3. class PolicyTest < Test::Unit::TestCase
  4. def setup
  5. super
  6. fake('shop')
  7. end
  8. def test_getting_the_list_of_policies
  9. fake('policies')
  10. policies = ShopifyAPI::Policy.all
  11. assert_equal(1, policies.length)
  12. policy = policies.first
  13. assert_equal('Privacy Policy', policy.title)
  14. assert_equal('Your privacy is important to us', policy.body)
  15. end
  16. end