Commit f9d1e485 authored by Vladimir Shushlin's avatar Vladimir Shushlin

Remove unnecessary let in specs

parent c45e4d12
......@@ -6,10 +6,9 @@ describe Evidences::EvidenceEntity do
let_it_be(:project) { create(:project) }
let(:release) { create(:release, project: project) }
let(:evidence) { build(:evidence, release: release) }
let(:entity) { described_class.new(evidence) }
let(:schema_file) { 'evidences/evidence' }
subject { entity.as_json }
subject { described_class.new(evidence).as_json }
it 'exposes the expected fields' do
expect(subject.keys).to contain_exactly(:release)
......
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