<commit_before>require 'spec_helper'

describe Spree::Admin::BaseController do
  controller(Spree::Admin::BaseController) do
    def index
      before_filter :unauthorized
      render text: ""
    end
  end

  it "redirects to Angular login" do
    get :index
    response.should redirect_to root_path(anchor: "login?after_login=#{spree.admin_path}")
  end
end<commit_msg>Patching a minor regression spec<commit_after>require 'spec_helper'

describe Spree::Admin::BaseController do
  controller(Spree::Admin::BaseController) do
    def index
      before_filter :unauthorized
      render text: ""
    end
  end

  it "redirects to Angular login" do
    get :index
    response.should redirect_to root_path(anchor: "login?after_login=/anonymous")
  end
end
{'fraction_non_alphanumeric': 0.08575197889182058, 'fraction_numerical': 0.0, 'mean_word_length': 4.3076923076923075, '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': '3430021', 'n_tokens_mistral': 233, 'n_tokens_neox': 225, 'n_words': 61}