Sha256: d82cd6100648eccda2ba4f3f1c8e08a75b9d31043a29aacc11c879fe632ee225

Contents?: true

Size: 313 Bytes

Versions: 60

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"}}', FakeWeb.last_request.body
  end
end

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
shopify_api-4.6.0 test/blog_test.rb
shopify_api-4.5.0 test/blog_test.rb
shopify_api-4.4.0 test/blog_test.rb
shopify_api-4.3.9 test/blog_test.rb
shopify_api-4.3.8 test/blog_test.rb
shopify_api-4.3.7 test/blog_test.rb
shopify_api-4.3.6 test/blog_test.rb
shopify_api-4.3.5 test/blog_test.rb
shopify_api-4.3.4 test/blog_test.rb
shopify_api-4.3.3 test/blog_test.rb
shopify_api-4.3.2 test/blog_test.rb
shopify_api-4.3.1 test/blog_test.rb
shopify_api-4.3.0 test/blog_test.rb
shopify_api-4.2.2 test/blog_test.rb
shopify_api-4.2.1 test/blog_test.rb
shopify_api-4.2.0 test/blog_test.rb
shopify_api-4.1.1 test/blog_test.rb
shopify_api-4.1.0 test/blog_test.rb
shopify_api-4.0.7 test/blog_test.rb
shopify_api-4.0.6 test/blog_test.rb