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-7.0.2 test/blog_test.rb
shopify_api-7.0.1 test/blog_test.rb
shopify_api-7.0.0 test/blog_test.rb
shopify_api-6.0.0 test/blog_test.rb
shopify_api-5.2.4 test/blog_test.rb
shopify_api-5.2.3 test/blog_test.rb
shopify_api-5.2.2 test/blog_test.rb
shopify_api-5.2.1 test/blog_test.rb
shopify_api-5.2.0 test/blog_test.rb
shopify_api-5.1.0 test/blog_test.rb
shopify_api-5.0.0 test/blog_test.rb
shopify_api-4.13.0 test/blog_test.rb
shopify_api-4.12.0 test/blog_test.rb
shopify_api-4.11.0 test/blog_test.rb
shopify_api-4.10.0 test/blog_test.rb
shopify_api-4.9.1 test/blog_test.rb
shopify_api-4.9.0 test/blog_test.rb
shopify_api-4.8.0 test/blog_test.rb
shopify_api-4.7.1 test/blog_test.rb
shopify_api-4.7.0 test/blog_test.rb