<commit_before>require 'spec_helper'
require 'action_controller'
require "rails-footnotes/notes/files_note"

describe Footnotes::Notes::FilesNote do

  let(:note) do
    Footnotes::Notes::FilesNote.new(double('controller', :response => double('', :body => '')))
  end

  subject { note }

  it { should be_valid }

  describe '#row' do
    subject { super().row }
    it { should eql :edit }
  end

end<commit_msg>test a concrete filesnote<commit_after>require 'spec_helper'
require 'action_controller'
require "rails-footnotes/notes/files_note"

class ConcreteFilesNote < Footnotes::Notes::FilesNote
  def scan_text(text)
    []
  end
end

describe Footnotes::Notes::FilesNote do

  let(:note) do
    ConcreteFilesNote.new(double('controller', :response => double('', :body => '')))
  end

  subject { note }

  it { should be_valid }

  describe '#row' do
    subject { super().row }
    it { should eql :edit }
  end

end
{'fraction_non_alphanumeric': 0.1331168831168831, 'fraction_numerical': 0.0, 'mean_word_length': 4.255681818181818, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 7, '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': '4797540', 'n_tokens_mistral': 308, 'n_tokens_neox': 289, 'n_words': 73}