From cc1eb7fec5a225342992377495e4969fdf8adf45 Mon Sep 17 00:00:00 2001 From: Lin Jen-Shin Date: Fri, 16 Dec 2016 22:49:33 +0800 Subject: [PATCH] Use described_class Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/8088#note_20133505 --- spec/lib/gitlab/serialize/yaml_variables_spec.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/lib/gitlab/serialize/yaml_variables_spec.rb b/spec/lib/gitlab/serialize/yaml_variables_spec.rb index 6d74f8c44d6..2691c3dc22f 100644 --- a/spec/lib/gitlab/serialize/yaml_variables_spec.rb +++ b/spec/lib/gitlab/serialize/yaml_variables_spec.rb @@ -2,8 +2,7 @@ require 'spec_helper' describe Gitlab::Serialize::YamlVariables do subject do - Gitlab::Serialize::YamlVariables.load( - Gitlab::Serialize::YamlVariables.dump(object)) + described_class.load(described_class.dump(object)) end let(:object) do