comment_serializer_spec.rb 368 Bytes
Newer Older
1 2 3 4 5 6
require "spec_helper"

describe Export::CommentSerializer do
  let(:comment) { create(:comment) }
  subject(:json_output) { Export::CommentSerializer.new(comment).to_json }

7 8 9
  it { is_expected.to include %("guid":"#{comment.guid}") }
  it { is_expected.to include %("post_guid":"#{comment.post.guid}") }
  it { is_expected.to include %("text":"#{comment.text}") }
10
end