Sha256: cab2830b3b976f7c70bac669b62b730f1bd1c214c674c676ae151a1c2c6539e5

Contents?: true

Size: 326 Bytes

Versions: 8

Compression:

Stored size: 326 Bytes

Contents

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

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
ruby_shopify_api-1.2.0 test/blog_test.rb
ruby_shopify_api-1.1.0 test/blog_test.rb
ruby_shopify_api-1.0.0 test/blog_test.rb
shopify_api-9.5.1 test/blog_test.rb
shopify_api-9.5 test/blog_test.rb
shopify_api-9.4.1 test/blog_test.rb
shopify_api-9.4.0 test/blog_test.rb
shopify_api-9.3.0 test/blog_test.rb