Displays the release date of the detected WP version
This commit is contained in:
@@ -22,7 +22,7 @@ describe WPScan::Controller::Core do
|
||||
|
||||
# Ensures the :url is the first one and is correctly setup
|
||||
expect(cli_options.first.to_sym).to eql :url
|
||||
expect(cli_options.first.required_unless).to match_array %i[update help version]
|
||||
expect(cli_options.first.required_unless).to match_array %i[update help hh version]
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -86,4 +86,10 @@ describe WPScan::WpVersion do
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
describe '#release_date' do
|
||||
subject(:version) { described_class.new('3.8.1') }
|
||||
|
||||
its(:release_date) { should eql '2014-01-23' }
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user