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