EDIT: remove unassigned var option

This commit is contained in:
Jake Webster
2026-01-30 15:26:03 +10:00
parent 57777b301a
commit db8b2eca9c

View File

@@ -198,7 +198,7 @@ RSpec.describe BeEF::Core::Command do
describe '#oc_value' do
it 'returns option value when option exists' do
option = BeEF::Core::Models::OptionCache.create!(name: 'test_option', value: 'test_value')
BeEF::Core::Models::OptionCache.create!(name: 'test_option', value: 'test_value')
command = described_class.new('test_get_variable')
expect(command.oc_value('test_option')).to eq('test_value')
end