<commit_before>require 'spec_helper'

describe Feedback::Submission do
  let(:body) { 'make this site better' }
  let(:referer) { root_path }
  let(:user_agent) { 'some user agent' }
  let(:source) { 'account' }
  let(:useful) { 'yes'}

  subject { described_class.new(body: body, user_agent: user_agent, referer: referer, source: source, useful: useful) }

  describe 'attributes' do
    it 'returns expected attributes' do
      expect(subject.body).to eql(body)
      expect(subject.user_agent).to eql(user_agent)
      expect(subject.source).to eql(source)
      expect(subject.useful).to eql(useful)
    end
  end

  describe '#created_at' do
    it 'returns created_at timestamp' do<commit_msg>Fix failing test<commit_after>require 'spec_helper'

describe Feedback::Submission do
  let(:body) { 'make this site better' }
  let(:referer) { '/' }
  let(:user_agent) { 'some user agent' }
  let(:source) { 'account' }
  let(:useful) { 'yes'}

  subject { described_class.new(body: body, user_agent: user_agent, referer: referer, source: source, useful: useful) }

  describe 'attributes' do
    it 'returns expected attributes' do
      expect(subject.body).to eql(body)
      expect(subject.user_agent).to eql(user_agent)
      expect(subject.source).to eql(source)
      expect(subject.useful).to eql(useful)
    end
  end

  describe '#created_at' do
    it 'returns created_at timestamp' do
{'fraction_non_alphanumeric': 0.12670007158196134, 'fraction_numerical': 0.0, 'mean_word_length': 4.139705882352941, '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': '5203079', 'n_tokens_mistral': 466, 'n_tokens_neox': 457, 'n_words': 114}