spec/controllers/votes_controller_spec.rb
def valid_attributes
    { vote: 'agree',
      comment: ''
    }
  end
# This should return the minimal set of attributes required to create a valid
# Vote. As you add validations to Vote, be sure to
# update the return value of this method accordingly.
This should return the minimal set of attributes required to create a valid
Vote. As you add validations to Vote, be sure to
update the return value of this method accordingly.
This should return the minimal set of attributes required to create a valid Vote . As you add validations to Vote be sure to update the return value of this method accordingly .
def valid_attributes
    { vote: 'agree',
      comment: ''
    }
  end
def valid_attributes { vote : 'agree' , comment : '' } end
This should return the minimal set of attributes required to create a valid
Vote.
This should return the minimal set of attributes required to create a valid Vote .