Fix RuboCop offenses in sampler spec

Description

This fixes RuboCop offenses in the sampler spec.

Merge request reports

Loading