Sha256: f7c45b92114050c700575dfdecc52b5054a1b1853574eb59b83194b13b7c7f6f
Contents?: true
Size: 607 Bytes
Versions: 9
Compression:
Stored size: 607 Bytes
Contents
# frozen_string_literal: true require "spec_helper" describe Decidim::Surveys::Abilities::CurrentUserAbility do let(:organization) { build(:organization) } let(:user) { build(:user, organization: organization) } let(:participatory_process) { build(:participatory_process, organization: organization) } let(:surveys_feature) { build(:surveys_feature, participatory_space: participatory_process) } let(:context) do { current_feature: surveys_feature } end subject { described_class.new(user, context) } it { is_expected.to be_able_to(:answer, Decidim::Surveys::Survey) } end
Version data entries
9 entries across 9 versions & 1 rubygems