Sha256: 8d8fd46d34a9ea04df41d88fc2cadd5eebdf41717f99b19243c5dde1a08f44e0
Contents?: true
Size: 973 Bytes
Versions: 1
Compression:
Stored size: 973 Bytes
Contents
require 'test_helper' class ShopifyApiTest < Test::Unit::TestCase context "Session" do should "not be valid without a url" do session = ShopifyAPI::Session.new(nil, "any-token") assert_not session.valid? end should "not be valid without token" do session = ShopifyAPI::Session.new("testshop.myshopify.com") assert_not session.valid? end should "be valid with any token and any url" do session = ShopifyAPI::Session.new("testshop.myshopify.com", "any-token") assert session.valid? end should "not raise error without params" do assert_nothing_raised do session = ShopifyAPI::Session.new("testshop.myshopify.com", "any-token") end end should "raise error if params passed but signature omitted" do assert_raises(RuntimeError) do session = ShopifyAPI::Session.new("testshop.myshopify.com", "any-token", {'foo' => 'bar'}) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shopify_api-1.0.6 | test/shopify_api_test.rb |