<commit_before>require 'spec_helper'
require 'spec/support/run_test_app'
require 'roo_on_rails/config'

RSpec.describe 'Google Auth setup' do
  run_test_app
  before { app.wait_start }

  context 'when booting' do
    let(:middleware) { app_helper.shell_run "cd #{app_path} && rake middleware" }

    context "if Google Auth has been enabled" do
      before do
        allow(RooOnRails::Config).to receive(:google_auth_enabled?) { true }
      end

      it 'inserts OmniAuth into the middleware stack' do     
        expect(middleware).to include 'OmniAuth::Builder'
      end
    end

    context "if Google Auth has NOT been enabled" do
      before do
        allow(RooOnRails::Config).to receive(:google_auth_enabled?) { false }
      end

      it 'does NOT insert OmniAuth into the middleware stack' do     
        expect(middleware).to_not include 'OmniAuth::Builder'
      end
    end
  end
end<commit_msg>SETI-395: clearly the test app is not rebuilt during integration tests<commit_after>require 'spec_helper'
require 'spec/support/run_test_app'
require 'roo_on_rails/config'

RSpec.describe 'Google Auth setup' do
  run_test_app
  before { app.wait_start }

  context 'when booting' do
    let(:middleware) { app_helper.shell_run "cd #{app_path} && rake middleware" }

    context "if Google Auth has been enabled" do
      before do
        allow(RooOnRails::Config).to receive(:google_auth_enabled?) { true }
      end

      it 'inserts OmniAuth into the middleware stack' do     
        expect(middleware).to include 'OmniAuth::Builder'
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.0845959595959596, 'fraction_numerical': 0.001893939393939394, 'mean_word_length': 3.2493297587131367, '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': '7041884', 'n_tokens_mistral': 502, 'n_tokens_neox': 486, 'n_words': 145}