<commit_before>require 'rails_helper'

RSpec.describe Item, type: :model do
  pending "add some examples to (or delete) #{__FILE__}"
end<commit_msg>add a spec for mark_done<commit_after>require 'rails_helper'

RSpec.describe Item, type: :model do
  describe ".mark_done" do
  	it "marks the specified item as done" do
  		item = Item.create name: "item A"
  		Item.mark_done item.id
  		expect(item.reload).to be_done
  	end
  end
end
{'fraction_non_alphanumeric': 0.0944700460829493, 'fraction_numerical': 0.0, 'mean_word_length': 4.178571428571429, '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': '2099097', 'n_tokens_mistral': 156, 'n_tokens_neox': 151, 'n_words': 49}