Sha256: f25e24cfe6b7559686ec96ac26849f29afb559f94e8b50e2e58fada9fadace3a
Contents?: true
Size: 318 Bytes
Versions: 2
Compression:
Stored size: 318 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 = SpiffyStoresAPI::Blog.create(:title => "Test Blog") assert_equal '{"blog":{"title":"Test Blog"}}', FakeWeb.last_request.body end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spiffy_stores_api-4.11.1 | test/blog_test.rb |
spiffy_stores_api-4.11.0 | test/blog_test.rb |