<commit_before># encoding: utf-8
require 'spec_helper'

describe "Security callbacks" do
  include Rack::Test::Methods

  def app
    GroveV1
  end

  let(:guest) { DeepStruct.wrap({}) }
  let(:alice) { DeepStruct.wrap(:identity => {:id => 1, :god => false, :realm => 'a'}) }<commit_msg>Made callback-tests order invariant<commit_after># encoding: utf-8
require 'spec_helper'

describe "Security callbacks" do
  include Rack::Test::Methods

  def app
    GroveV1.set :disable_callbacks => false
    GroveV1
  end

  let(:guest) { DeepStruct.wrap({}) }
  let(:alice) { DeepStruct.wrap(:identity => {:id => 1, :god => false, :realm => 'a'}) }
{'fraction_non_alphanumeric': 0.1640625, 'fraction_numerical': 0.0109375, 'mean_word_length': 4.432203389830509, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 12, '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': '5691635', 'n_tokens_mistral': 234, 'n_tokens_neox': 222, 'n_words': 56}