Use described_class

Feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/8088#note_20133505
This commit is contained in:
Lin Jen-Shin 2016-12-16 22:49:33 +08:00
parent bcc09ca760
commit cc1eb7fec5

View file

@ -2,8 +2,7 @@ require 'spec_helper'
describe Gitlab::Serialize::YamlVariables do describe Gitlab::Serialize::YamlVariables do
subject do subject do
Gitlab::Serialize::YamlVariables.load( described_class.load(described_class.dump(object))
Gitlab::Serialize::YamlVariables.dump(object))
end end
let(:object) do let(:object) do