Commit ddccd24c authored by Rémy Coutable's avatar Rémy Coutable 🔴

Remove superfluous lib: true, type: redis, service: true, models: true,...

Remove superfluous lib: true, type: redis, service: true, models: true, services: true, no_db: true, api: true
Signed-off-by: Rémy Coutable's avatarRémy Coutable <remy@rymai.me>
parent 7e113b68
require 'spec_helper'
require 'rainbow/ext/string'
describe 'seed production settings', lib: true do
describe 'seed production settings' do
include StubENV
let(:settings_file) { Rails.root.join('db/fixtures/production/010_settings.rb') }
let(:settings) { Gitlab::CurrentSettings.current_application_settings }
......
require 'rails_helper'
describe 'Markdown References', :feature, :js do
describe 'Markdown References', :js do
let(:user) { create(:user) }
let(:actual_project) { create(:project, :public) }
let(:merge_request) { create(:merge_request, target_project: actual_project, source_project: actual_project)}
......
require 'spec_helper'
describe AccessRequestsFinder, services: true do
describe AccessRequestsFinder do
let(:user) { create(:user) }
let(:access_requester) { create(:user) }
......
require 'spec_helper'
require_relative '../../config/initializers/6_validations.rb'
describe '6_validations', lib: true do
describe '6_validations' do
before :all do
FileUtils.mkdir_p('tmp/tests/paths/a/b/c/d')
FileUtils.mkdir_p('tmp/tests/paths/a/b/c2')
......
require 'spec_helper'
describe 'instrument_classes', lib: true do
describe 'instrument_classes' do
let(:config) { double(:config) }
let(:unicorn_sampler) { double(:unicorn_sampler) }
......
require 'spec_helper'
require_relative '../../config/initializers/secret_token'
describe 'create_tokens', lib: true do
describe 'create_tokens' do
include StubENV
let(:secrets) { ActiveSupport::OrderedOptions.new }
......
require 'spec_helper'
require_relative '../../config/initializers/1_settings'
describe Settings, lib: true do
describe Settings do
describe '#host_without_www' do
context 'URL with protocol' do
it 'returns the host' do
......
require 'spec_helper'
describe 'trusted_proxies', lib: true do
describe 'trusted_proxies' do
context 'with default config' do
before do
set_trusted_proxies([])
......
require 'spec_helper'
describe Banzai::CrossProjectReference, lib: true do
describe Banzai::CrossProjectReference do
include described_class
describe '#project_from_ref' do
......
require 'spec_helper'
describe Banzai::Filter::AsciiDocPostProcessingFilter, lib: true do
describe Banzai::Filter::AsciiDocPostProcessingFilter do
include FilterSpecHelper
it "adds class for elements with data-math-style" do
......
require 'spec_helper'
describe Banzai::Filter::AutolinkFilter, lib: true do
describe Banzai::Filter::AutolinkFilter do
include FilterSpecHelper
let(:link) { 'http://about.gitlab.com/' }
......
require 'rails_helper'
describe Banzai::Filter::BlockquoteFenceFilter, lib: true do
describe Banzai::Filter::BlockquoteFenceFilter do
include FilterSpecHelper
it 'converts blockquote fences to blockquote lines' do
......
require 'spec_helper'
describe Banzai::Filter::CommitRangeReferenceFilter, lib: true do
describe Banzai::Filter::CommitRangeReferenceFilter do
include FilterSpecHelper
let(:project) { create(:project, :public, :repository) }
......
require 'spec_helper'
describe Banzai::Filter::CommitReferenceFilter, lib: true do
describe Banzai::Filter::CommitReferenceFilter do
include FilterSpecHelper
let(:project) { create(:project, :public, :repository) }
......
require 'spec_helper'
describe Banzai::Filter::EmojiFilter, lib: true do
describe Banzai::Filter::EmojiFilter do
include FilterSpecHelper
before do
......
require 'spec_helper'
describe Banzai::Filter::ExternalIssueReferenceFilter, lib: true do
describe Banzai::Filter::ExternalIssueReferenceFilter do
include FilterSpecHelper
def helper
......
......@@ -17,7 +17,7 @@ shared_examples 'an external link with rel attribute' do
end
end
describe Banzai::Filter::ExternalLinkFilter, lib: true do
describe Banzai::Filter::ExternalLinkFilter do
include FilterSpecHelper
it 'ignores elements without an href attribute' do
......
require 'spec_helper'
describe Banzai::Filter::GollumTagsFilter, lib: true do
describe Banzai::Filter::GollumTagsFilter do
include FilterSpecHelper
let(:project) { create(:empty_project) }
......
require 'spec_helper'
describe Banzai::Filter::HtmlEntityFilter, lib: true do
describe Banzai::Filter::HtmlEntityFilter do
include FilterSpecHelper
let(:unescaped) { 'foo <strike attr="foo">&&&</strike>' }
......
require 'spec_helper'
describe Banzai::Filter::ImageLinkFilter, lib: true do
describe Banzai::Filter::ImageLinkFilter do
include FilterSpecHelper
def image(path)
......
require 'spec_helper'
describe Banzai::Filter::InlineDiffFilter, lib: true do
describe Banzai::Filter::InlineDiffFilter do
include FilterSpecHelper
it 'adds inline diff span tags for deletions when using square brackets' do
......
require 'spec_helper'
describe Banzai::Filter::IssuableStateFilter, lib: true do
describe Banzai::Filter::IssuableStateFilter do
include ActionView::Helpers::UrlHelper
include FilterSpecHelper
......
require 'spec_helper'
describe Banzai::Filter::IssueReferenceFilter, lib: true do
describe Banzai::Filter::IssueReferenceFilter do
include FilterSpecHelper
def helper
......
require 'spec_helper'
require 'html/pipeline'
describe Banzai::Filter::LabelReferenceFilter, lib: true do
describe Banzai::Filter::LabelReferenceFilter do
include FilterSpecHelper
let(:project) { create(:empty_project, :public, name: 'sample-project') }
......
require 'spec_helper'
describe Banzai::Filter::MarkdownFilter, lib: true do
describe Banzai::Filter::MarkdownFilter do
include FilterSpecHelper
context 'code block' do
......
require 'spec_helper'
describe Banzai::Filter::MathFilter, lib: true do
describe Banzai::Filter::MathFilter do
include FilterSpecHelper
it 'leaves regular inline code unchanged' do
......
require 'spec_helper'
describe Banzai::Filter::MergeRequestReferenceFilter, lib: true do
describe Banzai::Filter::MergeRequestReferenceFilter do
include FilterSpecHelper
let(:project) { create(:empty_project, :public) }
......
require 'spec_helper'
describe Banzai::Filter::MilestoneReferenceFilter, lib: true do
describe Banzai::Filter::MilestoneReferenceFilter do
include FilterSpecHelper
let(:project) { create(:empty_project, :public) }
......
require 'spec_helper'
describe Banzai::Filter::PlantumlFilter, lib: true do
describe Banzai::Filter::PlantumlFilter do
include FilterSpecHelper
it 'should replace plantuml pre tag with img tag' do
......
require 'spec_helper'
describe Banzai::Filter::RedactorFilter, lib: true do
describe Banzai::Filter::RedactorFilter do
include ActionView::Helpers::UrlHelper
include FilterSpecHelper
......
require 'spec_helper'
describe Banzai::Filter::ReferenceFilter, lib: true do
describe Banzai::Filter::ReferenceFilter do
let(:project) { build(:project) }
describe '#each_node' do
......
require 'spec_helper'
describe Banzai::Filter::RelativeLinkFilter, lib: true do
describe Banzai::Filter::RelativeLinkFilter do
def filter(doc, contexts = {})
contexts.reverse_merge!({
commit: commit,
......
require 'spec_helper'
describe Banzai::Filter::SanitizationFilter, lib: true do
describe Banzai::Filter::SanitizationFilter do
include FilterSpecHelper
describe 'default whitelist' do
......
require 'spec_helper'
describe Banzai::Filter::SnippetReferenceFilter, lib: true do
describe Banzai::Filter::SnippetReferenceFilter do
include FilterSpecHelper
let(:project) { create(:empty_project, :public) }
......
require 'spec_helper'
describe Banzai::Filter::SyntaxHighlightFilter, lib: true do
describe Banzai::Filter::SyntaxHighlightFilter do
include FilterSpecHelper
context "when no language is specified" do
......
require 'spec_helper'
describe Banzai::Filter::TableOfContentsFilter, lib: true do
describe Banzai::Filter::TableOfContentsFilter do
include FilterSpecHelper
def header(level, text)
......
require 'spec_helper'
describe Banzai::Filter::UploadLinkFilter, lib: true do
describe Banzai::Filter::UploadLinkFilter do
def filter(doc, contexts = {})
contexts.reverse_merge!({
project: project
......
require 'spec_helper'
describe Banzai::Filter::UserReferenceFilter, lib: true do
describe Banzai::Filter::UserReferenceFilter do
include FilterSpecHelper
let(:project) { create(:empty_project, :public) }
......
require 'spec_helper'
describe Banzai::Filter::VideoLinkFilter, lib: true do
describe Banzai::Filter::VideoLinkFilter do
def filter(doc, contexts = {})
contexts.reverse_merge!({
project: project
......
require 'spec_helper'
describe Banzai::Filter::WikiLinkFilter, lib: true do
describe Banzai::Filter::WikiLinkFilter do
include FilterSpecHelper
let(:namespace) { build_stubbed(:namespace, name: "wiki_link_ns") }
......
require 'rails_helper'
describe Banzai::Filter::YamlFrontMatterFilter, lib: true do
describe Banzai::Filter::YamlFrontMatterFilter do
include FilterSpecHelper
it 'allows for `encoding:` before the frontmatter' do
......
require 'spec_helper'
describe Banzai::IssuableExtractor, lib: true do
describe Banzai::IssuableExtractor do
let(:project) { create(:empty_project) }
let(:user) { create(:user) }
let(:extractor) { described_class.new(project, user) }
......
require 'spec_helper'
describe Banzai::ReferenceParser::BaseParser, lib: true do
describe Banzai::ReferenceParser::BaseParser do
include ReferenceParserHelpers
let(:user) { create(:user) }
......
require 'spec_helper'
describe Banzai::ReferenceParser::CommitParser, lib: true do
describe Banzai::ReferenceParser::CommitParser do
include ReferenceParserHelpers
let(:project) { create(:empty_project, :public) }
......
require 'spec_helper'
describe Banzai::ReferenceParser::CommitRangeParser, lib: true do
describe Banzai::ReferenceParser::CommitRangeParser do
include ReferenceParserHelpers
let(:project) { create(:empty_project, :public) }
......
require 'spec_helper'
describe Banzai::ReferenceParser::ExternalIssueParser, lib: true do
describe Banzai::ReferenceParser::ExternalIssueParser do
include ReferenceParserHelpers
let(:project) { create(:empty_project, :public) }
......
require 'spec_helper'
describe Banzai::ReferenceParser::IssueParser, lib: true do
describe Banzai::ReferenceParser::IssueParser do
include ReferenceParserHelpers
let(:project) { create(:empty_project, :public) }
......
require 'spec_helper'
describe Banzai::ReferenceParser::LabelParser, lib: true do
describe Banzai::ReferenceParser::LabelParser do
include ReferenceParserHelpers
let(:project) { create(:empty_project, :public) }
......
require 'spec_helper'
describe Banzai::ReferenceParser::MergeRequestParser, lib: true do
describe Banzai::ReferenceParser::MergeRequestParser do
include ReferenceParserHelpers
let(:user) { create(:user) }
......
require 'spec_helper'
describe Banzai::ReferenceParser::MilestoneParser, lib: true do
describe Banzai::ReferenceParser::MilestoneParser do
include ReferenceParserHelpers
let(:project) { create(:empty_project, :public) }
......
require 'spec_helper'
describe Banzai::ReferenceParser::SnippetParser, lib: true do
describe Banzai::ReferenceParser::SnippetParser do
include ReferenceParserHelpers
let(:project) { create(:empty_project, :public) }
......
require 'spec_helper'
describe Banzai::ReferenceParser::UserParser, lib: true do
describe Banzai::ReferenceParser::UserParser do
include ReferenceParserHelpers
let(:group) { create(:group) }
......
require 'spec_helper'
describe Ci::Ansi2html, lib: true do
describe Ci::Ansi2html do
subject { described_class }
it "prints non-ansi as-is" do
......