<commit_before>require 'rails_helper'

describe Debate do

  before(:each) do
    @debate = build(:debate)
  end

  it "should be valid" do
    expect(@debate).to be_valid
  end

  it "should not be valid without a title" do
    @debate.title = nil
    expect(@debate).to_not be_valid
  end

  it "should not be valid without a description" do
    @debate.description = nil
    expect(@debate).to_not be_valid
  end<commit_msg>adds author validation spec [#11]<commit_after>require 'rails_helper'

describe Debate do

  before(:each) do
    @debate = build(:debate)
  end

  it "should be valid" do
    expect(@debate).to be_valid
  end

  it "should not be valid without an author" do
    @debate.author = nil
    expect(@debate).to_not be_valid
  end

  it "should not be valid without a title" do
    @debate.title = nil
    expect(@debate).to_not be_valid
  end

  it "should not be valid without a description" do
    @debate.description = nil
    expect(@debate).to_not be_valid
  end
{'fraction_non_alphanumeric': 0.08686868686868687, 'fraction_numerical': 0.00202020202020202, 'mean_word_length': 3.29004329004329, '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': '4908241', 'n_tokens_mistral': 356, 'n_tokens_neox': 324, 'n_words': 109}