diff options
Diffstat (limited to 'spec/support/shared_examples/models/concerns/sanitizable_shared_examples.rb')
-rw-r--r-- | spec/support/shared_examples/models/concerns/sanitizable_shared_examples.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/shared_examples/models/concerns/sanitizable_shared_examples.rb b/spec/support/shared_examples/models/concerns/sanitizable_shared_examples.rb index ed94a71892d..aedbfe4deb3 100644 --- a/spec/support/shared_examples/models/concerns/sanitizable_shared_examples.rb +++ b/spec/support/shared_examples/models/concerns/sanitizable_shared_examples.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true RSpec.shared_examples 'sanitizable' do |factory, fields| - let(:attributes) { fields.to_h { |field| [field, input] } } + let(:attributes) { fields.index_with { input } } it 'includes Sanitizable' do expect(described_class).to include(Sanitizable) |