| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 | 
							- 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
 
-   def test_get_authors
 
-     fake "articles/authors", :method => :get, :body => load_fixture('authors')
 
-     authors = ShopifyAPI::Article.authors
 
-     assert_equal "Shopify", authors.first
 
-     assert_equal "development shop", authors.last
 
-   end
 
-   def test_get_authors_for_blog_id
 
-     fake "blogs/1008414260/articles/authors", :method => :get, :body => load_fixture('authors')
 
-     authors = ShopifyAPI::Article.authors(:blog_id => 1008414260)
 
-     assert_equal 3, authors.length
 
-   end
 
-   def test_get_tags
 
-     fake "articles/tags", :method => :get, :body => load_fixture('tags')
 
-     tags = ShopifyAPI::Article.tags
 
-     assert_equal "consequuntur", tags.first
 
-     assert_equal "repellendus", tags.last
 
-   end
 
-   def test_get_tags_for_blog_id
 
-     fake "blogs/1008414260/articles/tags", :method => :get, :body => load_fixture('tags')
 
-     tags = ShopifyAPI::Article.tags(:blog_id => 1008414260)
 
-     assert_equal "consequuntur", tags.first
 
-     assert_equal "repellendus", tags.last
 
-   end
 
-   def test_get_popular_tags
 
-     fake "articles/tags.json?limit=1&popular=1", :extension => false, :method => :get, :body => load_fixture('tags')
 
-     tags = ShopifyAPI::Article.tags(:popular => 1, :limit => 1)
 
-     assert_equal 3, tags.length
 
-   end
 
- end
 
 
  |