<commit_before>require 'screenshot_helper'

describe "factlink", type: :feature do
  include Screenshots::DiscussionHelper

  before :each do
    @user = sign_in_user create :full_user
  end

  it "the layout of the discussion page is correct" do
    factlink = create_discussion

    go_to_discussion_page_of factlink

    # TODO fix hardcoded values in next line, we're now
    #      implicitly depending on factorygirl behaviour
    find('.evidence-votable', text: 'Fact 1', visible: false).find('a', text:'1 comment')

    page.should have_content factlink.data.displaystring

    assume_unchanged_screenshot "discussion_page"
  end
end
<commit_msg>Inlined useless before<commit_after>require 'screenshot_helper'

describe "factlink", type: :feature do
  include Screenshots::DiscussionHelper

  it "the layout of the discussion page is correct" do
    @user = sign_in_user create :full_user
    factlink = create_discussion

    go_to_discussion_page_of factlink

    # TODO fix hardcoded values in next line, we're now
    #      implicitly depending on factorygirl behaviour
    find('.evidence-votable', text: 'Fact 1', visible: false).find('a', text:'1 comment')

    page.should have_content factlink.data.displaystring

    assume_unchanged_screenshot "discussion_page"
  end
end

{'fraction_non_alphanumeric': 0.07507739938080496, 'fraction_numerical': 0.0030959752321981426, 'mean_word_length': 4.3429752066115705, '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': '924756', 'n_tokens_mistral': 400, 'n_tokens_neox': 372, 'n_words': 118}