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' ...@@ -4,7 +4,7 @@ require 'spec_helper'
describe SafeUrl do describe SafeUrl do
describe '#safe_url' do describe '#safe_url' do
class TestClass class SafeUrlTestClass
include SafeUrl include SafeUrl
attr_reader :url attr_reader :url
...@@ -14,7 +14,7 @@ describe SafeUrl do ...@@ -14,7 +14,7 @@ describe SafeUrl do
end end
end end
let(:test_class) { TestClass.new(url) } let(:test_class) { SafeUrlTestClass.new(url) }
let(:url) { 'http://example.com' } let(:url) { 'http://example.com' }
subject { test_class.safe_url } subject { test_class.safe_url }
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
require 'spec_helper' require 'spec_helper'
describe QualifiedDomainArrayValidator do describe QualifiedDomainArrayValidator do
class TestClass class QualifiedDomainArrayValidatorTestClass
include ActiveModel::Validations include ActiveModel::Validations
attr_accessor :domain_array attr_accessor :domain_array
...@@ -14,7 +14,7 @@ describe QualifiedDomainArrayValidator do ...@@ -14,7 +14,7 @@ describe QualifiedDomainArrayValidator do
end end
let!(:record) do let!(:record) do
TestClass.new(['gitlab.com']) QualifiedDomainArrayValidatorTestClass.new(['gitlab.com'])
end end
subject { validator.validate(record) } 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