policy_test.rb 399 B

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