Sha256: c7dda75b53a509888e1e86a971562c9742247eadcec12d4cc817cedcc7aad0e1
Contents?: true
Size: 674 Bytes
Versions: 1
Compression:
Stored size: 674 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
decidim-0.1.0 | decidim-comments/spec/helpers/comments_helper_spec.rb |