diaspora/spec/presenters/conversation_presenter.rb
2018-11-01 13:56:18 +01:00

14 lines
303 B
Ruby

# frozen_string_literal: true
describe ConversationPresenter do
before do
@conversation = FactoryGirl.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