<commit_before>require 'spec_helper'

describe OmniAuth::FailureEndpoint do
  subject{ OmniAuth::FailureEndpoint }

  context 'development' do
    before do
      @rack_env = ENV['RACK_ENV']
      ENV['RACK_ENV'] = 'development'
    end

    it 'should raise out the error' do
      err = StandardError.new("Blah")
      expect{ subject.call('omniauth.error' => err) }.to raise_error(err)
    end

    it 'should raise out an OmniAuth::Error if no omniauth.error is set' do
      expect{ subject.call('omniauth.error.type' => 'example') }.to raise_error(OmniAuth::Error, "example")<commit_msg>Fixing build on 1.8.7<commit_after>require 'spec_helper'

describe OmniAuth::FailureEndpoint do
  subject{ OmniAuth::FailureEndpoint }

  context 'development' do
    before do
      @rack_env = ENV['RACK_ENV']
      ENV['RACK_ENV'] = 'development'
    end

    it 'should raise out the error' do
      expect do
        subject.call('omniauth.error' => StandardError.new("Blah"))
      end.to raise_error(StandardError, "Blah")
    end

    it 'should raise out an OmniAuth::Error if no omniauth.error is set' do
      expect{ subject.call('omniauth.error.type' => 'example') }.to raise_error(OmniAuth::Error, "example")
{'fraction_non_alphanumeric': 0.12191103789126853, 'fraction_numerical': 0.002471169686985173, 'mean_word_length': 3.727626459143969, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3854584', 'n_tokens_mistral': 407, 'n_tokens_neox': 385, 'n_words': 102}