| 
														
															@@ -1,8 +1,8 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 require 'test_helper' 
														 | 
														
														 | 
														
															 require 'test_helper' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 class BlogTest < Test::Unit::TestCase 
														 | 
														
														 | 
														
															 class BlogTest < Test::Unit::TestCase 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   test "blog creation" do 
														 | 
														
														 | 
														
															   test "blog creation" do 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    fake "blogs", :method => :post, :status => 202 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    blog = ShopifyAPI::Blog.new(:title => "Test Blog") 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    assert_equal "Test Blog", blog.title 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    fake "blogs", :method => :post, :status => 202, :body => load_fixture('blog') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    blog = ShopifyAPI::Blog.create(:title => "Test Blog") 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    assert_equal '{"blog":{"title":"Test Blog"}}', FakeWeb.last_request.body 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   end 
														 | 
														
														 | 
														
															   end 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 end 
														 | 
														
														 | 
														
															 end 
														 |