<commit_before>require 'spec_helper'

describe IssuesController do

  describe "GET 'index'" do
    it "when #index returns http success" do
      get 'index'
      response.should be_success
    end
  end

  describe "GET 'update_all'" do
    it "when #update_all returns http success" do
      Issue.stub(:update_from_bz).and_return("stub")
      get 'update_all'
      response.should be_success
    end<commit_msg>Don’t actually process commits in the controller spec.<commit_after>require 'spec_helper'

describe IssuesController do

  describe "GET 'index'" do
    it "when #index returns http success" do
      get 'index'
      response.should be_success
    end
  end

  describe "GET 'update_all'" do
    it "when #update_all returns http success" do
      Issue.stub(:update_from_bz).and_return("stub")
      Commit.stub(:update_from_git!)
      get 'update_all'
      response.should be_success
    end
{'fraction_non_alphanumeric': 0.08205689277899343, 'fraction_numerical': 0.0, 'mean_word_length': 3.3364928909952605, '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': '5000692', 'n_tokens_mistral': 279, 'n_tokens_neox': 273, 'n_words': 85}