publication_test.rb 327 B

123456789101112
  1. # frozen_string_literal: true
  2. require 'test_helper'
  3. class PublicationTest < Test::Unit::TestCase
  4. def test_find_all_publications
  5. fake('publications')
  6. publications = ShopifyAPI::Publication.find(:all)
  7. assert_equal(55650051, publications.first.id)
  8. assert_equal("Buy Button", publications.first.name)
  9. end
  10. end