HELLO v3!!!
This commit is contained in:
13
spec/app/finders/timthumb_version_spec.rb
Normal file
13
spec/app/finders/timthumb_version_spec.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
require 'spec_helper'
|
||||
|
||||
describe WPScan::Finders::TimthumbVersion::Base do
|
||||
subject(:timthumb_version) { described_class.new(target) }
|
||||
let(:target) { WPScan::Timthumb.new(url) }
|
||||
let(:url) { 'http://ex.lo/timthumb.php' }
|
||||
|
||||
describe '#finders' do
|
||||
it 'contains the expected finders' do
|
||||
expect(timthumb_version.finders.map { |f| f.class.to_s.demodulize }).to eq %w[BadRequest]
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user