Commit fb3cf2ac authored by rpereira2's avatar rpereira2

Change name of TestClass in 2 spec files

Since qualified_domain_array_validator_spec.rb and
spec/models/concerns/safe_url_spec.rb used the same name for a Class,
they caused order dependent spec failures.

This commit renames both the TestClass in both specs.
parent 58b63a7c
......@@ -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