diaspora/spec/helpers/interim_stream_hackiness_helper_spec.rb
2021-06-30 23:19:29 +02:00

10 lines
340 B
Ruby

# frozen_string_literal: true
describe InterimStreamHackinessHelper, type: :helper do
describe "#publisher_formatted_text" do
it "returns the prefill text from the stream" do
@stream = double(publisher: Publisher.new(alice, prefill: "hello world"))
expect(publisher_formatted_text).to eq("hello world")
end
end
end