Sha256: 6bd84f553a834062f68f4bce307baea616716223f7fe3c159e9f31bb55a39c31

Contents?: true

Size: 275 Bytes

Versions: 5

Compression:

Stored size: 275 Bytes

Contents

require 'test_helper'
class BlogTest < Test::Unit::TestCase
  test "blog creation" do
    fake "blogs", :method => :post, :status => 202
    ShopifyAPI::Blog.create(:title => "Test Blog")
    assert_equal '{"blog":{"title":"Test Blog"}}', FakeWeb.last_request.body
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
shopify_api-3.0.3 test/blog_test.rb
shopify_api-3.0.2 test/blog_test.rb
shopify_api-3.0.1 test/blog_test.rb
shopify_api-3.0.0 test/blog_test.rb
shopify_api-2.3.0 test/blog_test.rb