| 
														
															@@ -3,19 +3,19 @@ require 'test_helper' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 class ShopifyApiTest < Test::Unit::TestCase 
														 | 
														
														 | 
														
															 class ShopifyApiTest < Test::Unit::TestCase 
														 | 
													
												
											
												
													
														| 
														 | 
														
															    
														 | 
														
														 | 
														
															    
														 | 
													
												
											
												
													
														| 
														 | 
														
															   context "Session" do 
														 | 
														
														 | 
														
															   context "Session" do 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    test "should raise error when blank shop url is provided" do 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    should "raise error when blank shop url is provided" do 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       assert_raise(ArgumentError) { ShopifyAPI::Session.new("") } 
														 | 
														
														 | 
														
															       assert_raise(ArgumentError) { ShopifyAPI::Session.new("") } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     end 
														 | 
														
														 | 
														
															     end 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    test "should not be valid without token" do 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    should "not be valid without token" do 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       session = ShopifyAPI::Session.new("testshop.myshopify.com") 
														 | 
														
														 | 
														
															       session = ShopifyAPI::Session.new("testshop.myshopify.com") 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       assert_not session.valid? 
														 | 
														
														 | 
														
															       assert_not session.valid? 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     end 
														 | 
														
														 | 
														
															     end 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    test "should be valid with any token" do 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    should "be valid with any token" do 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       session = ShopifyAPI::Session.new("testshop.myshopify.com", "any-token") 
														 | 
														
														 | 
														
															       session = ShopifyAPI::Session.new("testshop.myshopify.com", "any-token") 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       assert session.valid? 
														 | 
														
														 | 
														
															       assert session.valid? 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     end 
														 | 
														
														 | 
														
															     end 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-     
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   end 
														 | 
														
														 | 
														
															   end 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+   
														 | 
													
												
											
												
													
														| 
														 | 
														
															 end 
														 | 
														
														 | 
														
															 end 
														 |