Skip to content

Commit

Permalink
Fixed Wordlist::File specs on macOS (issue #23).
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Aug 4, 2023
1 parent f28c7f7 commit 94f4abb
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions spec/file_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@

context "and the wordlist format is gzip" do
let(:path) { ::File.join(fixtures_dir,'wordlist.txt.gz') }
let(:expected_contents) { `zcat #{Shellwords.shellescape(path)}` }
let(:expected_contents) { `zcat < #{Shellwords.shellescape(path)}` }

it "must read the uncompressed gzip data" do
expect { |b|
Expand All @@ -143,7 +143,7 @@

context "and the wordlist format is bzip2" do
let(:path) { ::File.join(fixtures_dir,'wordlist.txt.bz2') }
let(:expected_contents) { `bzcat #{Shellwords.shellescape(path)}` }
let(:expected_contents) { `bzcat < #{Shellwords.shellescape(path)}` }

it "must read the uncompressed gzip data" do
expect { |b|
Expand All @@ -154,7 +154,7 @@

context "and the wordlist format is xz" do
let(:path) { ::File.join(fixtures_dir,'wordlist.txt.xz') }
let(:expected_contents) { `xzcat #{Shellwords.shellescape(path)}` }
let(:expected_contents) { `xzcat < #{Shellwords.shellescape(path)}` }

it "must read the uncompressed gzip data" do
expect { |b|
Expand All @@ -172,7 +172,7 @@

context "and the wordlist format is gzip" do
let(:path) { ::File.join(fixtures_dir,'wordlist.txt.gz') }
let(:expected_contents) { `zcat #{Shellwords.shellescape(path)}` }
let(:expected_contents) { `zcat < #{Shellwords.shellescape(path)}` }

it "must return an Enumerator of the uncompressed gzip data" do
expect(subject.each_line).to be_kind_of(Enumerator)
Expand All @@ -182,7 +182,7 @@

context "and the wordlist format is bzip2" do
let(:path) { ::File.join(fixtures_dir,'wordlist.txt.bz2') }
let(:expected_contents) { `bzcat #{Shellwords.shellescape(path)}` }
let(:expected_contents) { `bzcat < #{Shellwords.shellescape(path)}` }

it "must return an Enumerator of the compressed gzip data" do
expect(subject.each_line).to be_kind_of(Enumerator)
Expand All @@ -192,7 +192,7 @@

context "and the wordlist format is xz" do
let(:path) { ::File.join(fixtures_dir,'wordlist.txt.xz') }
let(:expected_contents) { `xzcat #{Shellwords.shellescape(path)}` }
let(:expected_contents) { `xzcat < #{Shellwords.shellescape(path)}` }

it "must return an Enumerator of the compressed gzip data" do
expect(subject.each_line).to be_kind_of(Enumerator)
Expand All @@ -211,7 +211,7 @@

context "and the wordlist format is gzip" do
let(:path) { ::File.join(fixtures_dir,'wordlist.txt.gz') }
let(:expected_contents) { `zcat #{Shellwords.shellescape(path)}` }
let(:expected_contents) { `zcat < #{Shellwords.shellescape(path)}` }

it "must read the uncompressed gzip data" do
expect { |b|
Expand All @@ -222,7 +222,7 @@

context "and the wordlist format is bzip2" do
let(:path) { ::File.join(fixtures_dir,'wordlist.txt.bz2') }
let(:expected_contents) { `bzcat #{Shellwords.shellescape(path)}` }
let(:expected_contents) { `bzcat < #{Shellwords.shellescape(path)}` }

it "must read the uncompressed gzip data" do
expect { |b|
Expand All @@ -233,7 +233,7 @@

context "and the wordlist format is xz" do
let(:path) { ::File.join(fixtures_dir,'wordlist.txt.xz') }
let(:expected_contents) { `xzcat #{Shellwords.shellescape(path)}` }
let(:expected_contents) { `xzcat < #{Shellwords.shellescape(path)}` }

it "must read the uncompressed gzip data" do
expect { |b|
Expand Down

0 comments on commit 94f4abb

Please sign in to comment.