Sha256: 1ff4ca3a1d5c34691d8aedb411364b5f2894ddde8003e785c746b0b7ce21444f
Contents?: true
Size: 863 Bytes
Versions: 12
Compression:
Stored size: 863 Bytes
Contents
# frozen_string_literal: true require "spec_helper" shared_examples "present admin log entry" do subject(:presenter) { described_class.new(action_log, helper) } let(:organization) { create(:organization) } let(:user) { create(:user, organization: organization) } let(:action) { "create" } let(:action_log) do create( :action_log, user: user, action: action, resource: admin_log_resource ) end before do helper.extend(Decidim::ApplicationHelper) helper.extend(Decidim::TranslationsHelper) end describe "#present" do subject { presenter.present } context "when the logged action is one that shows diff and the action log does not have an associated version" do it "returns an empty diff" do expect(subject).not_to include("class=\"logs__log__diff\"") end end end end
Version data entries
12 entries across 12 versions & 2 rubygems