Add frozen_string_literal to spec/support
Using the sed script from https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
This commit is contained in:
parent
7fa0c7662b
commit
f0391c2517
247 changed files with 494 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
shared_examples_for 'group and project boards' do |route_definition, ee = false|
|
||||
let(:root_url) { route_definition.gsub(":id", board_parent.id.to_s) }
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
shared_examples 'creating an issue resolving discussions through the API' do
|
||||
it 'creates a new project issue' do
|
||||
expect(response).to have_gitlab_http_status(:created)
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
shared_examples 'a 404 response when source is private' do
|
||||
before do
|
||||
source.update_column(:visibility_level, Gitlab::VisibilityLevel::PRIVATE)
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
shared_examples_for 'group and project milestones' do |route_definition|
|
||||
let(:resource_route) { "#{route}/#{milestone.id}" }
|
||||
let(:label_1) { create(:label, title: 'label_1', project: project, priority: 1) }
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
shared_context 'disabled repository' do
|
||||
before do
|
||||
project.project_feature.update!(
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module SchemaPath
|
||||
def self.expand(schema, dir = nil)
|
||||
if Gitlab.ee? && dir.nil?
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
shared_examples_for 'allows the "read_user" scope' do |api_version|
|
||||
let(:version) { api_version || 'v4' }
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
shared_examples 'an unauthorized API user' do
|
||||
it { is_expected.to eq(403) }
|
||||
end
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# Specs for reference links containing HTML.
|
||||
#
|
||||
# Requires a reference:
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
RSpec.configure do |config|
|
||||
config.after do
|
||||
BatchLoader::Executor.clear_current
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# rubocop:disable Style/GlobalVars
|
||||
require 'capybara/rails'
|
||||
require 'capybara/rspec'
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
CarrierWave.root = File.expand_path('tmp/tests/public', Rails.root)
|
||||
|
||||
RSpec.configure do |config|
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module ChunkedIOHelpers
|
||||
def sample_trace_raw
|
||||
@sample_trace_raw ||= File.read(expand_fixture_path('trace/sample_trace'))
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module CommitTrailersSpecHelper
|
||||
extend ActiveSupport::Concern
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
shared_context 'a GitHub-ish import controller' do
|
||||
let(:user) { create(:user) }
|
||||
let(:token) { "asdasd12345" }
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# Specifications for behavior common to all objects with an email attribute.
|
||||
# Takes a list of email-format attributes and requires:
|
||||
# - subject { "the object with a attribute= setter" }
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'spec_helper'
|
||||
|
||||
shared_context 'Ldap::OmniauthCallbacksController' do
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
shared_examples 'authenticates sessionless user' do |path, format, params|
|
||||
params ||= {}
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# rubocop:disable Metrics/AbcSize
|
||||
|
||||
# Note: The ABC size is large here because we have a method generating test cases with
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module DbCleaner
|
||||
def delete_from_all_tables!(except: nil)
|
||||
DatabaseCleaner.clean_with(:deletion, cache_tables: false, except: except)
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module ExternalAuthorizationServiceHelpers
|
||||
def enable_external_authorization_service_check
|
||||
stub_application_setting(external_authorization_service_enabled: true)
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
shared_examples 'thread comments' do |resource_name|
|
||||
let(:form_selector) { '.js-main-target-form' }
|
||||
let(:dropdown_selector) { "#{form_selector} .comment-type-dropdown" }
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'spec_helper'
|
||||
|
||||
shared_examples 'reportable note' do |type|
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
shared_examples 'creating an issue for a thread' do
|
||||
it 'shows an issue with the title filled in' do
|
||||
title_field = page.find_field('issue[title]')
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
shared_examples "an autodiscoverable RSS feed with current_user's feed token" do
|
||||
it "has an RSS autodiscovery link tag with current_user's feed token" do
|
||||
expect(page).to have_css("link[type*='atom+xml'][href*='feed_token=#{user.feed_token}']", visible: false)
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
shared_examples 'variable list' do
|
||||
it 'shows list of variables' do
|
||||
page.within('.js-ci-variable-list-section') do
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module ForgeryProtection
|
||||
def with_forgery_protection
|
||||
ActionController::Base.allow_forgery_protection = true
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module GoogleApi
|
||||
module CloudPlatformHelpers
|
||||
def stub_google_api_validate_token
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module ApiHelpers
|
||||
# Public: Prepend a request path with the path to the API
|
||||
#
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module AssetsHelpers
|
||||
# In a CI environment the assets are not compiled, as there is a CI job
|
||||
# `compile-assets` that compiles them in the prepare stage for all following
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'zlib'
|
||||
|
||||
class BareRepoOperations
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module BoardHelpers
|
||||
def click_card(card)
|
||||
within card do
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module CapybaraHelpers
|
||||
# Execute a block a certain number of times before considering it a failure
|
||||
#
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# frozen_sting_literal: true
|
||||
|
||||
# This generates fake CI metadata .gz for testing
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# Helper for setting cookies in Selenium/WebDriver
|
||||
#
|
||||
module CookieHelper
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module CycleAnalyticsHelpers
|
||||
include GitHelpers
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module DatabaseConnectionHelpers
|
||||
def run_with_new_database_connection
|
||||
pool = ActiveRecord::Base.connection_pool
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module DeviseHelpers
|
||||
# explicitly tells Devise which mapping to use
|
||||
# this is needed when we are testing a Devise controller bypassing the router
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module DragTo
|
||||
def drag_to(list_from_index: 0, from_index: 0, to_index: 0, list_to_index: 0, selector: '', scrollable: 'body', duration: 1000)
|
||||
evaluate_script("simulateDrag({scrollable: $('#{scrollable}').get(0), duration: #{duration}, from: {el: $('#{selector}').eq(#{list_from_index}).get(0), index: #{from_index}}, to: {el: $('#{selector}').eq(#{list_to_index}).get(0), index: #{to_index}}});")
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module DropzoneHelper
|
||||
# Provides a way to perform `attach_file` for a Dropzone-based file input
|
||||
#
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module EmailHelpers
|
||||
def sent_to_user(user, recipients: email_recipients)
|
||||
recipients.count { |to| to == user.notification_email }
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module ExclusiveLeaseHelpers
|
||||
def stub_exclusive_lease(key = nil, uuid = 'uuid', renew: false, timeout: nil)
|
||||
key ||= instance_of(String)
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module ExpectNextInstanceOf
|
||||
def expect_next_instance_of(klass, *new_args)
|
||||
receive_new = receive(:new)
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'rubocop/rspec/support'
|
||||
|
||||
# https://github.com/backus/rubocop-rspec/blob/master/spec/support/expect_offense.rb
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module FakeBlobHelpers
|
||||
class FakeBlob
|
||||
include BlobLike
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class FakeRenameReservedPathMigrationV1 < ActiveRecord::Migration[4.2]
|
||||
include Gitlab::Database::RenameReservedPathsMigration::V1
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class FakeU2fDevice
|
||||
attr_reader :name
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# These helpers allow you to manipulate with sorting features.
|
||||
#
|
||||
# Usage:
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# These helpers allow you to manipulate with notes.
|
||||
#
|
||||
# Usage:
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# These helpers allow you to manipulate with sorting features.
|
||||
#
|
||||
# Usage:
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# Helper methods for Banzai filter specs
|
||||
#
|
||||
# Must be included into specs manually
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module FilteredSearchHelpers
|
||||
def filtered_search
|
||||
page.find('.filtered-search')
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module FixtureHelpers
|
||||
def fixture_file(filename, dir: '')
|
||||
return '' if filename.blank?
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require_relative 'workhorse_helpers'
|
||||
|
||||
module GitHttpHelpers
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module GitlabVerifyHelpers
|
||||
def collect_ranges(args = {})
|
||||
verifier = described_class.new(args.merge(batch_size: 1))
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module GraphqlHelpers
|
||||
MutationDefinition = Struct.new(:query, :variables)
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'ostruct'
|
||||
|
||||
# Helper methods for controller specs in the Import namespace
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# see app/assets/javascripts/test_utils/simulate_input.js
|
||||
|
||||
module InputHelper
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require_relative './wait_for_requests'
|
||||
|
||||
module InspectRequests
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module IssueHelpers
|
||||
def visit_issues(project, opts = {})
|
||||
visit project_issues_path project, opts
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'action_dispatch/testing/test_request'
|
||||
require 'fileutils'
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module JiraServiceHelper
|
||||
JIRA_URL = "http://jira.example.net".freeze
|
||||
JIRA_API = JIRA_URL + "/rest/api/2"
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module Spec
|
||||
module Support
|
||||
module Helpers
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module KubernetesHelpers
|
||||
include Gitlab::Kubernetes
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module LdapHelpers
|
||||
def ldap_adapter(provider = 'ldapmain', ldap = double(:ldap))
|
||||
::Gitlab::Auth::LDAP::Adapter.new(provider, ldap)
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'io/console'
|
||||
|
||||
module LiveDebugger
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require_relative 'devise_helpers'
|
||||
|
||||
module LoginHelpers
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# This is a helper class used by the GitLab Markdown feature spec
|
||||
#
|
||||
# Because the feature spec only cares about the output of the Markdown, and the
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module MergeRequestDiffHelpers
|
||||
def click_diff_line(line_holder, diff_side = nil)
|
||||
line = get_line_components(line_holder, diff_side)
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module MergeRequestHelpers
|
||||
def visit_merge_requests(project, opts = {})
|
||||
visit project_merge_requests_path project, opts
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module MigrationsHelpers
|
||||
def active_record_base
|
||||
ActiveRecord::Base
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module MobileHelpers
|
||||
def resize_screen_xs
|
||||
resize_window(575, 768)
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module NoteInteractionHelpers
|
||||
def open_more_actions_dropdown(note)
|
||||
note_element = find("#note_#{note.id}")
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module NotificationHelpers
|
||||
extend self
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module ProjectForksHelper
|
||||
def fork_project(project, user = nil, params = {})
|
||||
Gitlab::GitalyClient.allow_n_plus_1_calls do
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module PrometheusHelpers
|
||||
def prometheus_memory_query(environment_slug)
|
||||
%{avg(container_memory_usage_bytes{container_name!="POD",environment="#{environment_slug}"}) / 2^20}
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module ActiveRecord
|
||||
class QueryRecorder
|
||||
attr_reader :log, :skip_cached, :cached
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module QuickActionsHelpers
|
||||
def write_note(text)
|
||||
Sidekiq::Testing.fake! do
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module RakeHelpers
|
||||
def run_rake_task(task_name, *args)
|
||||
Rake::Task[task_name].reenable
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module ReactiveCachingHelpers
|
||||
def reactive_cache_key(subject, *qualifiers)
|
||||
([subject.class.reactive_cache_key.call(subject)].flatten + qualifiers).join(':')
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class Redis
|
||||
ForbiddenCommand = Class.new(StandardError)
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module ReferenceParserHelpers
|
||||
def empty_html_link
|
||||
Nokogiri::HTML.fragment('<a></a>').children[0]
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module RepoHelpers
|
||||
extend self
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module RoutesHelpers
|
||||
def fake_routes(&block)
|
||||
@routes = @routes.dup
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module SearchHelpers
|
||||
def select_filter(name)
|
||||
find(:xpath, "//ul[contains(@class, 'search-filter')]//a[contains(.,'#{name}')]").click
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# This file is generated by generate-seed-repo-rb. Do not edit this file manually.
|
||||
#
|
||||
# Seed repo:
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require_relative 'wait_for_requests'
|
||||
|
||||
# Select2 ajax programmatic helper
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module SelectionHelper
|
||||
def select_element(selector)
|
||||
find(selector)
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# Helper allows you to sort items
|
||||
#
|
||||
# Params
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'active_support/core_ext/hash/transform_values'
|
||||
require 'active_support/hash_with_indifferent_access'
|
||||
require 'active_support/dependencies'
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# Inspired by https://github.com/ljkbennett/stub_env/blob/master/lib/stub_env/helpers.rb
|
||||
module StubENV
|
||||
def stub_env(key_or_hash, value = nil)
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module StubFeatureFlags
|
||||
# Stub Feature flags with `flag_name: true/false`
|
||||
#
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module StubGitlabCalls
|
||||
def stub_gitlab_calls
|
||||
stub_user
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module StubGitlabData
|
||||
def gitlab_ci_yaml
|
||||
File.read(Rails.root.join('spec/support/gitlab_stubs/gitlab_ci.yml'))
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module StubMetrics
|
||||
def authentication_metrics
|
||||
Gitlab::Auth::Activity
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module StubObjectStorage
|
||||
def stub_object_storage_uploader(
|
||||
config:,
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module StubRequests
|
||||
IP_ADDRESS_STUB = '8.8.8.9'.freeze
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# Inspired by https://github.com/ljkbennett/stub_env/blob/master/lib/stub_env/helpers.rb
|
||||
module StubWorker
|
||||
def stub_worker(queue:)
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module TermsHelper
|
||||
def enforce_terms
|
||||
stub_env('IN_MEMORY_APPLICATION_SETTINGS', 'false')
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'rspec/mocks'
|
||||
require 'toml-rb'
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue