Sha256: 6f9443bbecdfd34281950e7f1b8a0a7d2ef407a4984e0bb9472623d6aca31db6
Contents?: true
Size: 675 Bytes
Versions: 20
Compression:
Stored size: 675 Bytes
Contents
# frozen_string_literal: true require "spec_helper" module Decidim module Comments describe CommentsHelper do let(:dummy_resource) { create(:dummy_resource) } describe "comments_for" do it "should render the react component `Comments` with the correct data" do expect(helper) .to receive(:react_comments_component) .with( "comments-for-DummyResource-1", commentableType: "Decidim::DummyResource", commentableId: "1", locale: I18n.locale ).and_call_original helper.comments_for(dummy_resource) end end end end end
Version data entries
20 entries across 20 versions & 1 rubygems