<commit_before>require 'rails_helper'

describe PollOption do
  describe 'display_name' do

    describe 'normal poll' do
      let(:poll_option) { build :poll_option, poll: build(:poll) }
      it 'returns the humanized option name' do
        poll_option.name = "letsdoit!"
        expect(poll_option.display_name).to eq "Letsdoit!"
      end
    end

    describe 'total score' do
      let(:user) { create :user }
      let(:poll) { create :poll_dot_vote }
      let(:poll_option) { poll.poll_options.first }
      let!(:old_stance) { create :stance,
        participant: user,
        latest: false,<commit_msg>Fix failing spec<commit_after>require 'rails_helper'

describe PollOption do
  describe 'display_name' do

    describe 'proposal' do
      let(:poll_option) { build :poll_option, poll: build(:poll_proposal) }
      it 'returns the humanized option name' do
        poll_option.name = 'agree'
        expect(poll_option.display_name).to eq 'Agree'        
      end
    end

    describe 'normal poll' do
      let(:poll_option) { build :poll_option, poll: build(:poll) }
      it 'returns the option name' do
        poll_option.name = "letsdoit!"
        expect(poll_option.display_name).to eq "letsdoit!"
      end
    end

    describe 'total score' do
      let(:user) { create :user }
      let(:poll) { create :poll_dot_vote }
      let(:poll_option) { poll.poll_options.first }
      let!(:old_stance) { create :stance,
        participant: user,
        latest: false,
{'fraction_non_alphanumeric': 0.10515740120562625, 'fraction_numerical': 0.0, 'mean_word_length': 2.8209718670076724, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2207595', 'n_tokens_mistral': 465, 'n_tokens_neox': 456, 'n_words': 122}