Sha256: 0797db0574d5b3e7c0be0f9b4b8c9308d60ff743d5890d2c8507f1ffc1c7886a

Contents?: true

Size: 565 Bytes

Versions: 3

Compression:

Stored size: 565 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
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
shopify_api-1.0.5 test/shopify_api_test.rb
shopify_api-1.0.4 test/shopify_api_test.rb
shopify_api-1.0.3 test/shopify_api_test.rb