<commit_before>require 'rails_helper'

RSpec.describe Debate, type: :model do
  pending "add some examples to (or delete) #{__FILE__}"
end<commit_msg>adds debate model specs [#5]<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 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

  it "should not be valid without accepting terms of service" do
    @debate.terms_of_service = nil
    expect(@debate).to_not be_valid
  end
  
end
{'fraction_non_alphanumeric': 0.0876010781671159, 'fraction_numerical': 0.0013477088948787063, 'mean_word_length': 3.7025316455696204, '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': '3071330', 'n_tokens_mistral': 263, 'n_tokens_neox': 241, 'n_words': 82}