Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
wpscanteam
GitHub Repository: wpscanteam/wpscan
Path: blob/master/spec/shared_examples/views/enumeration/db_exports.rb
485 views
1
# frozen_string_literal: true
2
3
shared_examples 'App::Views::Enumeration::DbExports' do
4
let(:view) { 'db_exports' }
5
let(:db_export) { WPScan::Model::DbExport }
6
7
describe 'db_exports' do
8
context 'when no file found' do
9
let(:expected_view) { File.join(view, 'none_found') }
10
11
it 'outputs the expected string' do
12
@tpl_vars = tpl_vars.merge(db_exports: [])
13
end
14
end
15
16
context 'when files found' do
17
xit
18
end
19
end
20
end
21
22