spec/controllers/committee_members_controller_spec.rb
def valid_attributes
    { user_id: [@user.id],
      admin: false,
      editor: false,
      voting: true
    }
  end
# This should return the minimal set of attributes required to create a valid
# Event. As you add validations to Event, be sure to
# update the return value of this method accordingly.
This should return the minimal set of attributes required to create a valid
Event. As you add validations to Event, be sure to
update the return value of this method accordingly.
This should return the minimal set of attributes required to create a valid Event . As you add validations to Event be sure to update the return value of this method accordingly .
def valid_attributes
    { user_id: [@user.id],
      admin: false,
      editor: false,
      voting: true
    }
  end
def valid_attributes { user_id : [ @user . id ] , admin : false , editor : false , voting : true } end
This should return the minimal set of attributes required to create a valid
Event.
This should return the minimal set of attributes required to create a valid Event .