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
1 changed files with 1 additions and 2 deletions

View File

@ -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