<commit_before>require 'spec_helper'

describe ApplicationHelper do
  fixtures :users

  let(:user) { users(:tester) }
  describe "#glyph" do
    before do
      @output = helper.glyph('user', 2)
    end

    it "should render an i tag" do
      #FIXME let's make this a regex
      @output.should include "</i>"  
    end

    it "should have the icon name as a class" do
      @output.should include "class=\"icon-user"
    end

    it "should support using the '2x' classes to change the size" do
      @output.should include "class=\"icon-user icon-2x\""
    end
  end

  describe "#badge" do
    before do
      @output = helper.badge(2)
    end

    it "should include a span with the correct class" do
      @output.should include "<span class=\"badge"
    end

    it "should include the number passed in" do
      @output.should include ">2</span>"
    end
  end

  describe "#inline_user_display" do<commit_msg>Update application helper spec to match changes to badge method<commit_after>require 'spec_helper'

describe ApplicationHelper do
  fixtures :users

  let(:user) { users(:tester) }
  describe "#glyph" do
    before do
      @output = helper.glyph('user', 2)
    end

    it "should render an i tag" do
      #FIXME let's make this a regex
      @output.should include "</i>"
    end

    it "should have the icon name as a class" do
      @output.should include "class=\"icon-user"
    end

    it "should support using the '2x' classes to change the size" do
      @output.should include "class=\"icon-user icon-2x\""
    end
  end

  describe "#badge" do
    before do
      @output = helper.badge(2, "badge-test")
    end

    it "should include a span with the correct class" do
      @output.should include "<span class=\"badge"
    end

    it "should include the number passed in" do
      @output.should include ">2</span>"
    end

    it "should include a custom class" do
      @output.should include "class=\"badge badge-test"
    end
  end

  describe "#inline_user_display" do
{'fraction_non_alphanumeric': 0.09845847836897066, 'fraction_numerical': 0.004972650422675286, 'mean_word_length': 2.6715328467153285, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6187931', 'n_tokens_mistral': 628, 'n_tokens_neox': 596, 'n_words': 233}