diaspora/spec/serializers/comment_serializer_spec.rb
2015-07-11 00:17:01 +02:00

10 lines
368 B
Ruby

require "spec_helper"
describe Export::CommentSerializer do
let(:comment) { create(:comment) }
subject(:json_output) { Export::CommentSerializer.new(comment).to_json }
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}") }
end