countable_test.rb 277 B

1234567891011121314
  1. # frozen_string_literal: true
  2. require 'test_helper'
  3. class CountableTest < Test::Unit::TestCase
  4. def setup
  5. super
  6. fake("products/count", body: '{"count": 16}')
  7. end
  8. def test_count_products
  9. count = ShopifyAPI::Product.count
  10. assert_equal(16, count)
  11. end
  12. end