Skip to content

Commit

Permalink
make rubocop happy
Browse files Browse the repository at this point in the history
  • Loading branch information
moozzi committed Feb 2, 2024
1 parent f1a520b commit a22b72e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/converter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
RSpec.describe Ronin::Masscan::Converter do
let(:fixtures_path) { File.expand_path(File.join(__dir__, '..', 'spec', 'fixtures')) }
let(:masscan_path) { File.join(fixtures_path, 'converter', 'masscan.json') }
let(:timestamp) { JSON.parse(File.read(masscan_path))[0].dig("timestamp").to_i }
let(:timestamp) { JSON.parse(File.read(masscan_path))[0]["timestamp"].to_i }
let(:masscan_file) { Masscan::OutputFile.new(masscan_path) }
let(:expected_json) do
[
Expand Down Expand Up @@ -86,7 +86,7 @@
Tempfile.create('masscan.json') do |output_file|
subject.convert(masscan_file, output_file, format: :json)
output_file.rewind

expect(output_file.read).to eq(expected_json)
end
end
Expand Down Expand Up @@ -120,4 +120,4 @@
end
end
end
end
end

0 comments on commit a22b72e

Please sign in to comment.