Sha256: 6913b059f35b55b37e4c0623c959bac2c0fae5cd90ab17e45b001c2e0c60fe50
Contents?: true
Size: 800 Bytes
Versions: 20
Compression:
Stored size: 800 Bytes
Contents
# frozen_string_literal: true require "spec_helper" module Decidim module Proposals describe ApplicationHelper do describe "humanize_proposal_state" do let(:helper) do Class.new.tap do |v| v.extend(Decidim::Proposals::ApplicationHelper) end end subject { helper.humanize_proposal_state(state) } context "when it is accepted" do let(:state) { "accepted" } it { is_expected.to eq("Accepted") } end context "when it is rejected" do let(:state) { "rejected" } it { is_expected.to eq("Rejected") } end context "when it is nil" do let(:state) { nil } it { is_expected.to eq("Not answered") } end end end end end
Version data entries
20 entries across 20 versions & 1 rubygems