Skip to content

Commit

Permalink
Fix unused variables warnings
Browse files Browse the repository at this point in the history
Fix the following warnings:

```
spec/cached_asset_file_spec.rb:51: warning: assigned but unused variable - known_document_0
spec/transformation_pipeline/transformations/transformation_spec.rb:19: warning: assigned but unused variable - svg
```
  • Loading branch information
tagliala committed Dec 9, 2024
1 parent 2d8c66c commit 16d1f21
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion spec/cached_asset_file_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
end

it "filters wanted files by simple string matching" do
known_document_0 = File.read(fixture_path.join("assets0", "known-document.svg"))
known_document_1 = File.read(fixture_path.join("assets1", "known-document.svg"))

asset_loader = InlineSvg::CachedAssetFile.new(paths: fixture_path, filters: "assets1")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
returned_document = transformation.with_svg(document, &b)
end.to yield_control

expect(returned_document.to_s).to match(%r{<svg>Some document</svg>})
expect(returned_document.to_s).to match(svg)
end

it "does not yield if the document does not contain an SVG element at the root" do
Expand Down

0 comments on commit 16d1f21

Please sign in to comment.