Sha256: 02148a6acfca8923bf5433e01cd0b7869af1ecd445502a11ed86040d06df82ec
Contents?: true
Size: 811 Bytes
Versions: 4
Compression:
Stored size: 811 Bytes
Contents
# frozen_string_literal: true require "spec_helper" module Decidim module Admin describe ParticipatoryProcessesController, type: :controller do let(:organization) { create(:organization) } let(:user) { create(:user, :admin, :confirmed, organization: organization) } before do @request.env["decidim.current_organization"] = organization sign_in user, scope: :user end describe "GET show" do context "process in another organization" do let!(:external_process) { create :participatory_process } it "is not visible to the user" do expect do get :show, params: { id: external_process.id } end.to raise_error(ActiveRecord::RecordNotFound) end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems