Skip to content

Commit

Permalink
get timestamp from json
Browse files Browse the repository at this point in the history
  • Loading branch information
moozzi committed Feb 2, 2024
1 parent 26b6a49 commit f1a520b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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) { 1629960621 }
let(:timestamp) { JSON.parse(File.read(masscan_path))[0].dig("timestamp").to_i }
let(:masscan_file) { Masscan::OutputFile.new(masscan_path) }
let(:expected_json) do
[
Expand Down

0 comments on commit f1a520b

Please sign in to comment.