Sha256: 5f8770bb92d8705769e5fab34bebb81e27691636698baf63fed26ef3ada15bc6

Contents?: true

Size: 313 Bytes

Versions: 10

Compression:

Stored size: 313 Bytes

Contents

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
shopify_api-9.2.0 test/blog_test.rb
shopify_api-9.1.0 test/blog_test.rb
shopify_api-9.0.4 test/blog_test.rb
shopify_api-9.0.3 test/blog_test.rb
shopify_api-9.0.2 test/blog_test.rb
shopify_api-9.0.1 test/blog_test.rb
shopify_api-9.0.0 test/blog_test.rb
shopify_api-8.1.0 test/blog_test.rb
shopify_api-8.0.0 test/blog_test.rb
shopify_api-7.1.0 test/blog_test.rb