Skip to content

Commit 80b73c0

Browse files
committed
Fix rubocop: Layout/AlignHash
Addressing: test/xccdf/benchmark_test.rb:81:30: C: Layout/AlignHash: Align the elements of a hash literal if they span more than one line. expected_references = [{ :title => 'SC-7', ^^^^^^^^^^^^^^^^^^^^ test/xccdf/benchmark_test.rb:82:30: C: Layout/AlignHash: Align the elements of a hash literal if they span more than one line. :href => 'http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf', ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ test/xccdf/benchmark_test.rb:84:30: C: Layout/AlignHash: Align the elements of a hash literal if they span more than one line. { :title => '1263', ^^^^^^^^^^^^^^^^^^^^ test/xccdf/benchmark_test.rb:85:30: C: Layout/AlignHash: Align the elements of a hash literal if they span more than one line. :href => 'http://iase.disa.mil/cci/index.html', ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1 parent a7d6bee commit 80b73c0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/xccdf/benchmark_test.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ def test_items_severity
7878
def test_items_references
7979
b = benchmark_from_file
8080
install_hids_rule = b.items['xccdf_org.ssgproject.content_rule_install_hids']
81-
expected_references = [{ :title => 'SC-7',
82-
:href => 'http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf',
81+
expected_references = [{ :title => 'SC-7',
82+
:href => 'http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf',
8383
:html_link => "<a href='http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf'>SC-7</a>" },
84-
{ :title => '1263',
85-
:href => 'http://iase.disa.mil/cci/index.html',
84+
{ :title => '1263',
85+
:href => 'http://iase.disa.mil/cci/index.html',
8686
:html_link => "<a href='http://iase.disa.mil/cci/index.html'>1263</a>" }]
8787
assert_equal(expected_references, install_hids_rule.references.map(&:to_hash), 'Install hids references should be equal')
8888
b.destroy

0 commit comments

Comments
 (0)