<commit_before>require 'spec_helper'

describe ClassificationsController do
  include_examples "every authenticated controller"

  let(:url) do
    url = Url.new(:url => "http://example.com/")
    url.asset = Asset.create(:user => controller.current_user, :name => "TestAsset")
    url.save!
    url
  end

  before(:each) do
    Classification.create!({:asset => url.asset})<commit_msg>fix classification controller specs<commit_after>require 'spec_helper'

describe ClassificationsController do
  include_examples "every authenticated controller"

  let(:url) do
    url = Url.new(:url => "http://example.com/")
    url.asset = Asset.create(:user => controller.current_user, :name => "TestAsset")
    url.save!
    url
  end

  before(:each) do
    controller.current_user.stub!(:tray_positions) { double(TrayPosition, :maximum => nil) }
    Classification.create!({:asset => url.asset})
{'fraction_non_alphanumeric': 0.1372328458942632, 'fraction_numerical': 0.0, 'mean_word_length': 4.460122699386503, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 12, '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': '1557423', 'n_tokens_mistral': 282, 'n_tokens_neox': 267, 'n_words': 58}