Skip to content

Commit

Permalink
Add spec for Purge (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
AI-Mozi authored Jan 26, 2024
1 parent bcd8d83 commit 93aa38c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions spec/cli/commands/purge_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,18 @@

describe Ronin::Wordlists::CLI::Commands::Purge do
include_examples "man_page"

describe '#run' do
let(:cache_dir) { instance_double('CacheDir') }

before do
allow(Ronin::Wordlists::CacheDir).to receive(:new).and_return(cache_dir)
end

it 'must purge all cached wordlists' do
expect(cache_dir).to receive(:purge)

subject.run
end
end
end

0 comments on commit 93aa38c

Please sign in to comment.