Skip to content

Commit

Permalink
Don't set unused block arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
gma committed Jan 23, 2025
1 parent 1631df7 commit 2dd2137
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions test/integration/atom_feed_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ def with_article_in_category(options = {})
article_options = options.merge(metadata: {
'categories' => category.path
})
article = create(:article, article_options)
create(:article, article_options)
visit_feed
yield(article, category)
yield(category)
end
end

Expand Down Expand Up @@ -149,7 +149,7 @@ def with_article_in_category(options = {})
end

it 'specifies article categories' do
with_article_in_category do |article, category|
with_article_in_category do |category|
assert_has_xpath "//category[@term='#{category.permalink}']"
end
end
Expand Down
2 changes: 1 addition & 1 deletion test/unit/static/assets_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
end

it 'is happy if public directory not present' do
in_temporary_project do |project_root|
in_temporary_project do
Nesta::Static::Assets.new('dist').copy_public_folder
end
end
Expand Down

0 comments on commit 2dd2137

Please sign in to comment.