diaspora/spec/presenters/conversation_presenter_spec.rb
2021-04-11 01:51:38 +02:00

14 lines
302 B
Ruby

# frozen_string_literal: true
describe ConversationPresenter do
before do
@conversation = FactoryBot.create(:conversation)
@presenter = ConversationPresenter.new(@conversation)
end
describe "#as_json" do
it "works" do
expect(@presenter.as_json).to be_a Hash
end
end
end