Sha256: af8a8496edd185228207968d1d54d3b5df7bf52e61e19e4e8d7c990a04ac52c5
Contents?: true
Size: 965 Bytes
Versions: 4
Compression:
Stored size: 965 Bytes
Contents
require 'test_helper' class ArticleTest < Test::Unit::TestCase def test_get_article fake "articles/6242736", :method => :get, :body => load_fixture('article') article = ShopifyAPI::Article.find(6242736) assert_equal "First Post", article.title end def test_get_articles fake "articles", :method => :get, :body => load_fixture('articles') articles = ShopifyAPI::Article.all assert_equal 3, articles.length end def test_get_articles_namespaced fake "blogs/1008414260/articles", :method => :get, :body => load_fixture('articles') articles = ShopifyAPI::Article.find(:all, :params => {:blog_id => 1008414260}) assert_equal 3, articles.length end def test_get_article_namespaced fake "blogs/1008414260/articles/6242736", :method => :get, :body => load_fixture('article') article = ShopifyAPI::Article.find(6242736, :params => {:blog_id => 1008414260}) assert_equal "First Post", article.title end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
shopify_api-3.1.6 | test/article_test.rb |
shopify_api-3.1.5 | test/article_test.rb |
shopify_api-3.1.3 | test/article_test.rb |
shopify_api-3.1.2 | test/article_test.rb |