Sha256: a100e57e20d2daa60285735e624367605e2759f5fc9216bcca66767e061b6288

Contents?: true

Size: 339 Bytes

Versions: 45

Compression:

Stored size: 339 Bytes

Contents

require 'test_helper'

class RedirectTest < Test::Unit::TestCase
  test "#create should create a redirect" do
    fake "redirects", :method => :post, :status => 201, :body => load_fixture('redirect')
    redirect = ShopifyAPI::Redirect.create(:path => "/ipod", :target => "/pages/itunes")
    assert_equal 979034150, redirect.id
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
shopify_api-4.3.2 test/redirect_test.rb
shopify_api-4.3.1 test/redirect_test.rb
shopify_api-4.3.0 test/redirect_test.rb
shopify_api-4.2.2 test/redirect_test.rb
shopify_api-4.2.1 test/redirect_test.rb