<commit_before>require 'spec_helper'

describe GroupsController do
  render_views

  describe "#show" do
    context "with a group name" do
      it "routes to the correct group" do
        group = Factory(:group, :name => "foobar")
        get :show, :name => "foobar"
        assigns[:group].should == group
      end

      it "throws a 404 if the group can't be found" do
        expect{ get :show, :name => "jibberjabber" }.to raise_error(ActiveRecord::RecordNotFound)
      end<commit_msg>Fix tests for new 404 page<commit_after>require 'spec_helper'

describe GroupsController do
  render_views

  describe "#show" do
    context "with a group name" do
      it "routes to the correct group" do
        group = Factory(:group, :name => "foobar")
        get :show, :name => "foobar"
        assigns[:group].should == group
      end

      it "throws a 404 if the group can't be found" do
        get :show, :name => "jibberjabber"
        response.status.should == 404
      end
{'fraction_non_alphanumeric': 0.10243407707910751, 'fraction_numerical': 0.012170385395537525, 'mean_word_length': 2.7245283018867923, 'pattern_counts': {'":': 0, '<': 3, '<?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': '812984', 'n_tokens_mistral': 316, 'n_tokens_neox': 289, 'n_words': 107}