Skip to content

Commit

Permalink
Add specs for WorlistOption (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
moozzi authored Jan 26, 2024
1 parent 0aafff9 commit 9ed3aa9
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions spec/cli/wordlist_option_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
require 'spec_helper'
require 'ronin/wordlists/cli/wordlist_option'
require 'ronin/wordlists/cli/command'

RSpec.describe Ronin::Wordlists::CLI::WordlistOption do
class TestWordlistOptionCommand < Ronin::Wordlists::CLI::Command
include Ronin::Wordlists::CLI::WordlistOption
end

let(:command_class) { TestWordlistOptionCommand }

describe '.included' do
subject { command_class }

it 'adds the --wordlist option to the command' do
expect(subject.options).to include(:wordlist)
end
end
end

0 comments on commit 9ed3aa9

Please sign in to comment.