Skip to content

Commit

Permalink
Fix Style/WordArray offences
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Thorner committed Sep 24, 2019
1 parent 742009e commit e998cd9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/integration/document_collection_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class DocumentCollectionTest < ActionDispatch::IntegrationTest
{
"title" => "Item one",
"body" => "<p>Content about item one</p>",
"documents" => ["a-content-id"],
"documents" => %w[a-content-id],
},
]
content_store_has_item(item["base_path"], item.to_json)
Expand Down
2 changes: 1 addition & 1 deletion test/presenters/case_study_presenter_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def schema_name
test "#from returns links to lead organisations, supporting organisations and worldwide organisations" do
with_organisations = {
"details" => {
"emphasised_organisations" => ["b56753d2-ae3f-480e-88b0-35b1934dfc5a"],
"emphasised_organisations" => %w[b56753d2-ae3f-480e-88b0-35b1934dfc5a],
},
"links" => {
"worldwide_organisations" => [{ "title" => "DFID Pakistan", "base_path" => "/government/world/organisations/dfid-pakistan" }],
Expand Down
2 changes: 1 addition & 1 deletion test/presenters/content_item/updatable_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,6 @@ def content_item
end
end

assert_equal @updatable.history.map { |i| i[:timestamp] }, ["2003-03-03", "2002-02-02", "2001-01-01"]
assert_equal @updatable.history.map { |i| i[:timestamp] }, %w[2003-03-03 2002-02-02 2001-01-01]
end
end

0 comments on commit e998cd9

Please sign in to comment.