Sha256: 0c41c0e83c3706e06b45731fba97ab2007a00610f4239923bc1940fa1ebbc23a
Contents?: true
Size: 442 Bytes
Versions: 4
Compression:
Stored size: 442 Bytes
Contents
require_relative '../spec_helper' require 'common_repository_model/area_serializer' describe CommonRepositoryModel::AreaSerializer do subject { CommonRepositoryModel::AreaSerializer.new(area) } let(:area) { CommonRepositoryModel::Area.new(name: 'hello') } let(:json) { JSON.parse(subject.to_json) } let(:root) { json.fetch('area') } it 'should be JSON' do root.fetch('pid') root.fetch('name').must_equal area.name end end
Version data entries
4 entries across 4 versions & 1 rubygems