<commit_before>require 'rails_helper'

RSpec.describe Like, type: :model do
	let(:idea){ FactoryGirl.create(:idea, id: 1)}
	let(:user){FactoryGirl.create(:user, id: 1)}
	let(:like){FactoryGirl.create(:like, idea: idea, user: user)}
	it "has factory make like with all" do
		like = FactoryGirl.create(:like)
	end
	it "is valid with single like" do
		expect(like).to be_valid
	end
	it "is valid with multiple likes" do
		liketwo = FactoryGirl.create(:like, idea: idea)
		expect(liketwo).to be_valid
	end
	it "is not valid with duplicate likes" do
		expect(like).to be_valid
		byebug
		liketwo= FactoryGirl.build(:like, user: user, idea: idea)
		expect(liketwo).not_to be_valid
	end
end<commit_msg>Remove byebug line<commit_after>require 'rails_helper'

RSpec.describe Like, type: :model do
	let(:idea){ FactoryGirl.create(:idea, id: 1)}
	let(:user){FactoryGirl.create(:user, id: 1)}
	let(:like){FactoryGirl.create(:like, idea: idea, user: user)}
	it "has factory make like with all" do
		like = FactoryGirl.create(:like)
	end
	it "is valid with single like" do
		expect(like).to be_valid
	end
	it "is valid with multiple likes" do
		liketwo = FactoryGirl.create(:like, idea: idea)
		expect(liketwo).to be_valid
	end
	it "is not valid with duplicate likes" do
		expect(like).to be_valid
		liketwo= FactoryGirl.build(:like, user: user, idea: idea)
		expect(liketwo).not_to be_valid
	end
end
{'fraction_non_alphanumeric': 0.12265512265512266, 'fraction_numerical': 0.002886002886002886, 'mean_word_length': 5.030434782608696, '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': '7453375', 'n_tokens_mistral': 517, 'n_tokens_neox': 483, 'n_words': 150}