You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: proposed_organisation_edit_spec.rb
    path of file: ./repos/LocalSupport/spec/models
    
    the code of the file until where you have to start completion: require 'rails_helper'
def check_viewability(boolean, usr, array_of_symbols)
  array_of_symbols.each do |sym|
    it "should indicate#{boolean ? '' : ' NOT'} viewable for #{sym}" do
      user = case usr
        when :regular_user
          regular_user 
        when :siteadmin
          siteadmin
   
    
def check_editability(boolean, usr, array_of_symbols)
  array_of_symbols.each do |sym|
    it "should indicate#{boolean ? '' : ' NOT'} editable for #{sym}" do
      user = case usr
        when :regular_user
          regular_user 
        when :siteadmin
          siteadmin
        else
          {}
        end
      expect(proposed_edit.editable?(sym, by: user)).to be boolean
    end
  end