<commit_before>require 'rails_helper'

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

describe Feedback do
  it 'should save a valid feedback' do
    expect(FactoryGirl.create(:feedback)).to be_valid
  end

  it 'should not save a feedback without a rating' do
    expect(FactoryGirl.create(:feedback, rating: nil)).to_not be_valid
  end

  it 'should respond to sender' do
    expect(FactoryGirl.create(:feedback)).to respond_to :sender
  end

  it 'should respond to recipient' do
    expect(FactoryGirl.create(:feedback)).to respond_to :recipient
  end

  it 'should respond to chat' do
    expect(FactoryGirl.create(:feedback)).to respond_to :chat
  end  
end
{'fraction_non_alphanumeric': 0.0890840652446675, 'fraction_numerical': 0.0, 'mean_word_length': 4.659574468085107, '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': '5368393', 'n_tokens_mistral': 256, 'n_tokens_neox': 233, 'n_words': 80}