Sha256: 42dd52cef0f9c18b2e74650edbfa93976f0ba60476818ed43b4733438130bf57

Contents?: true

Size: 403 Bytes

Versions: 2

Compression:

Stored size: 403 Bytes

Contents

require 'test_helper'

class Superstore::SerializationTest < Superstore::TestCase
  test 'as_json' do
    issue = Issue.new
    expected = {
      "id"          => issue.id,
      "created_at"  => nil,
      "updated_at"  => nil,
      "description" => nil,
      "title"       => nil,
      "parent_issue_id" => nil,
      "comments"    => nil
    }

    assert_equal expected, issue.as_json
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
superstore-3.0.0 test/unit/serialization_test.rb
superstore-2.5.0 test/unit/serialization_test.rb