Skip to content

Commit

Permalink
Update spec for parity
Browse files Browse the repository at this point in the history
  • Loading branch information
aapomm committed May 30, 2024
1 parent 418d85e commit ea2baa0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/services/liquid_assigns_service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,14 @@
report_content = project.content_library
report_content.properties = { 'dradis.project' => project.name }
report_content.save

create(:content_block, project: project)
end

it 'builds a hash with Dradis::Pro assigns' do
expect(liquid_assigns['document_properties'].available_properties).to eq({ 'dradis.project' => project.name })
expect(liquid_assigns['team'].name).to eq(project.team.name)
expect(liquid_assigns['content_blocks'].map(&:content)).to eq(project.content_blocks.map(&:content))
end
end
end

0 comments on commit ea2baa0

Please sign in to comment.