Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
wpscanteam
GitHub Repository: wpscanteam/wpscan
Path: blob/master/spec/shared_examples/views/enumeration/config_backups.rb
485 views
1
# frozen_string_literal: true
2
3
shared_examples 'App::Views::Enumeration::ConfigBackups' do
4
let(:view) { 'config_backups' }
5
let(:config_backup) { WPScan::Model::ConfigBackup }
6
7
describe 'config_backups' do
8
context 'when no backups 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(config_backups: [])
13
end
14
end
15
16
context 'when backups found' do
17
xit
18
end
19
end
20
end
21
22