Commit f1e2eb86 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'fix-test-class' into 'master'

Change name of TestClass in 2 spec files

See merge request gitlab-org/gitlab!22023
parents a8496ba7 fb3cf2ac
......@@ -4,7 +4,7 @@ require 'spec_helper'
describe SafeUrl do
describe '#safe_url' do
class TestClass
class SafeUrlTestClass
include SafeUrl
attr_reader :url
......@@ -14,7 +14,7 @@ describe SafeUrl do
end
end
let(:test_class) { TestClass.new(url) }
let(:test_class) { SafeUrlTestClass.new(url) }
let(:url) { 'http://example.com' }
subject { test_class.safe_url }
......
......@@ -3,7 +3,7 @@
require 'spec_helper'
describe QualifiedDomainArrayValidator do
class TestClass
class QualifiedDomainArrayValidatorTestClass
include ActiveModel::Validations
attr_accessor :domain_array
......@@ -14,7 +14,7 @@ describe QualifiedDomainArrayValidator do
end
let!(:record) do
TestClass.new(['gitlab.com'])
QualifiedDomainArrayValidatorTestClass.new(['gitlab.com'])
end
subject { validator.validate(record) }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment