Skip to content
Snippets Groups Projects
Commit 13d6bab1 authored by Douwe Maan's avatar Douwe Maan
Browse files

Tag lib specs

parent 7a5e77c0
No related branches found
No related tags found
No related merge requests found
Showing
with 21 additions and 21 deletions
require 'spec_helper'
 
describe Ci::Ansi2html do
describe Ci::Ansi2html, lib: true do
subject { Ci::Ansi2html }
 
it "prints non-ansi as-is" do
Loading
Loading
require 'spec_helper'
 
describe "Charts" do
describe Ci::Charts, lib: true do
 
context "build_times" do
before do
Loading
Loading
require 'spec_helper'
 
module Ci
describe GitlabCiYamlProcessor do
describe GitlabCiYamlProcessor, lib: true do
let(:path) { 'path' }
describe "#builds_for_ref" do
Loading
Loading
require 'spec_helper'
 
describe DisableEmailInterceptor do
describe DisableEmailInterceptor, lib: true do
before do
ActionMailer::Base.register_interceptor(DisableEmailInterceptor)
end
Loading
Loading
require 'spec_helper'
 
describe ExtractsPath do
describe ExtractsPath, lib: true do
include ExtractsPath
include RepoHelpers
include Gitlab::Application.routes.url_helpers
Loading
Loading
require 'spec_helper'
 
describe 'Gitlab::FileSizeValidatorSpec' do
describe FileSizeValidator, lib: true do
let(:validator) { FileSizeValidator.new(options) }
let(:attachment) { AttachmentUploader.new }
let(:note) { create(:note) }
Loading
Loading
require 'spec_helper'
 
describe Gitlab::GitRefValidator do
describe Gitlab::GitRefValidator, lib: true do
it { expect(Gitlab::GitRefValidator.validate('feature/new')).to be_truthy }
it { expect(Gitlab::GitRefValidator.validate('implement_@all')).to be_truthy }
it { expect(Gitlab::GitRefValidator.validate('my_new_feature')).to be_truthy }
Loading
Loading
Loading
Loading
@@ -2,7 +2,7 @@ require 'spec_helper'
require 'nokogiri'
 
module Gitlab
describe Asciidoc do
describe Asciidoc, lib: true do
 
let(:input) { '<b>ascii</b>' }
let(:context) { {} }
Loading
Loading
require 'spec_helper'
 
describe Gitlab::Auth do
describe Gitlab::Auth, lib: true do
let(:gl_auth) { Gitlab::Auth.new }
 
describe :find do
Loading
Loading
require "spec_helper"
 
describe Grack::Auth do
describe Grack::Auth, lib: true do
let(:user) { create(:user) }
let(:project) { create(:project) }
 
Loading
Loading
require 'spec_helper'
 
describe Gitlab::Shell do
describe Gitlab::Shell, lib: true do
let(:project) { double('Project', id: 7, path: 'diaspora') }
let(:gitlab_shell) { Gitlab::Shell.new }
 
Loading
Loading
@@ -16,7 +16,7 @@ describe Gitlab::Shell do
 
it { expect(gitlab_shell.url_to_repo('diaspora')).to eq(Gitlab.config.gitlab_shell.ssh_path_prefix + "diaspora.git") }
 
describe Gitlab::Shell::KeyAdder do
describe Gitlab::Shell::KeyAdder, lib: true do
describe '#add_key' do
it 'normalizes space characters in the key' do
io = spy
Loading
Loading
require 'spec_helper'
 
describe Gitlab::BitbucketImport::Client do
describe Gitlab::BitbucketImport::Client, lib: true do
let(:token) { '123456' }
let(:secret) { 'secret' }
let(:client) { Gitlab::BitbucketImport::Client.new(token, secret) }
Loading
Loading
require 'spec_helper'
 
describe Gitlab::BitbucketImport::ProjectCreator do
describe Gitlab::BitbucketImport::ProjectCreator, lib: true do
let(:user) { create(:user) }
let(:repo) do
{
Loading
Loading
require 'spec_helper'
 
describe Gitlab::ClosingIssueExtractor do
describe Gitlab::ClosingIssueExtractor, lib: true do
let(:project) { create(:project) }
let(:project2) { create(:project) }
let(:issue) { create(:issue, project: project) }
Loading
Loading
require 'spec_helper'
 
describe Gitlab::ColorSchemes do
describe Gitlab::ColorSchemes, lib: true do
describe '.body_classes' do
it 'returns a space-separated list of class names' do
css = described_class.body_classes
Loading
Loading
require 'spec_helper'
 
describe Gitlab::Database do
describe Gitlab::Database, lib: true do
# These are just simple smoke tests to check if the methods work (regardless
# of what they may return).
describe '.mysql?' do
Loading
Loading
require 'spec_helper'
 
describe Gitlab::Diff::File do
describe Gitlab::Diff::File, lib: true do
include RepoHelpers
 
let(:project) { create(:project) }
Loading
Loading
require 'spec_helper'
 
describe Gitlab::Diff::Parser do
describe Gitlab::Diff::Parser, lib: true do
include RepoHelpers
 
let(:project) { create(:project) }
Loading
Loading
require "spec_helper"
 
describe Gitlab::Email::AttachmentUploader do
describe Gitlab::Email::AttachmentUploader, lib: true do
describe "#execute" do
let(:project) { build(:project) }
let(:message_raw) { fixture_file("emails/attachment.eml") }
Loading
Loading
require "spec_helper"
 
describe Gitlab::Email::Receiver do
describe Gitlab::Email::Receiver, lib: true do
before do
stub_incoming_email_setting(enabled: true, address: "reply+%{key}@appmail.adventuretime.ooo")
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment