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-5.0.0 test/redirect_test.rb
shopify_api-4.13.0 test/redirect_test.rb
shopify_api-4.12.0 test/redirect_test.rb
shopify_api-4.11.0 test/redirect_test.rb
shopify_api-4.10.0 test/redirect_test.rb
shopify_api-4.9.1 test/redirect_test.rb
shopify_api-4.9.0 test/redirect_test.rb
shopify_api-4.8.0 test/redirect_test.rb
shopify_api-4.7.1 test/redirect_test.rb
shopify_api-4.7.0 test/redirect_test.rb
shopify_api-4.6.0 test/redirect_test.rb
shopify_api-4.5.0 test/redirect_test.rb
shopify_api-4.4.0 test/redirect_test.rb
shopify_api-4.3.9 test/redirect_test.rb
shopify_api-4.3.8 test/redirect_test.rb
shopify_api-4.3.7 test/redirect_test.rb
shopify_api-4.3.6 test/redirect_test.rb
shopify_api-4.3.5 test/redirect_test.rb
shopify_api-4.3.4 test/redirect_test.rb
shopify_api-4.3.3 test/redirect_test.rb