Commit 787c1cfc authored by zaziemo's avatar zaziemo Committed by Jonne Haß
Browse files

add spec and code to include guid in comment's export

parent 2df4a1cc
module Export
class CommentSerializer < ActiveModel::Serializer
attributes :text,
attributes :guid,
def post_guid
require "spec_helper"
describe Export::CommentSerializer do
let(:comment) { create(:comment) }
subject(:json_output) { }
it { include("\"guid\":\"#{comment.guid}\"") }
it { include("\"post_guid\":\"#{}\"") }
it { include("\"text\":\"#{comment.text}\"") }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment