<commit_before>require 'rails_helper'

RSpec.describe List, type: :model do
  before(:each) do
    @user = User.create(email: '<EMAIL>', password: 'password', username: 'user123')
    @list = @user.lists.create(title: 'sample list')
    @task = @list.tasks.create(content: 'something something task')
  end

  it "belongs to user" do
    expect(@list.user).to eq(@user)
  end

  it "has many tasks" do
    expect(@list.tasks.size).to eq(1)
  end

end
<commit_msg>Add status to list specs.<commit_after>require 'rails_helper'

RSpec.describe List, type: :model do
  before(:each) do
    @user = User.create(email: '<EMAIL>', password: 'password', username: 'user123')
    @list = @user.lists.create(title: 'sample list')
    @task = @list.tasks.create(content: 'something something task')
  end

  it "belongs to user" do
    expect(@list.user).to eq(@user)
  end

  it "has many tasks" do
    expect(@list.tasks.size).to eq(1)
  end

  it "defaults to incomplete" do
    expect(@list.incomplete?).to eq(true)
  end

  it "can be complete" do
    @list.status = "complete"
    expect(@list.complete?).to eq(true)
  end

end

{'fraction_non_alphanumeric': 0.14781834372217276, 'fraction_numerical': 0.007123775601068566, 'mean_word_length': 3.722689075630252, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2099098', 'n_tokens_mistral': 398, 'n_tokens_neox': 381, 'n_words': 108}