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-9.2.0 test/redirect_test.rb
shopify_api-9.1.0 test/redirect_test.rb
shopify_api-9.0.4 test/redirect_test.rb
shopify_api-9.0.3 test/redirect_test.rb
shopify_api-9.0.2 test/redirect_test.rb
shopify_api-9.0.1 test/redirect_test.rb
shopify_api-9.0.0 test/redirect_test.rb
shopify_api-8.1.0 test/redirect_test.rb
shopify_api-8.0.0 test/redirect_test.rb
shopify_api-7.1.0 test/redirect_test.rb
shopify_api-7.0.2 test/redirect_test.rb
shopify_api-7.0.1 test/redirect_test.rb
shopify_api-7.0.0 test/redirect_test.rb
shopify_api-6.0.0 test/redirect_test.rb
shopify_api-5.2.4 test/redirect_test.rb
shopify_api-5.2.3 test/redirect_test.rb
shopify_api-5.2.2 test/redirect_test.rb
shopify_api-5.2.1 test/redirect_test.rb
shopify_api-5.2.0 test/redirect_test.rb
shopify_api-5.1.0 test/redirect_test.rb