HELLO v3!!!
This commit is contained in:
18
spec/shared_examples/views/enumeration/config_backups.rb
Normal file
18
spec/shared_examples/views/enumeration/config_backups.rb
Normal file
@@ -0,0 +1,18 @@
|
||||
shared_examples 'App::Views::Enumeration::ConfigBackups' do
|
||||
let(:view) { 'config_backups' }
|
||||
let(:config_backup) { WPScan::ConfigBackup }
|
||||
|
||||
describe 'config_backups' do
|
||||
context 'when no backups found' do
|
||||
let(:expected_view) { File.join(view, 'none_found') }
|
||||
|
||||
it 'outputs the expected string' do
|
||||
@tpl_vars = tpl_vars.merge(config_backups: [])
|
||||
end
|
||||
end
|
||||
|
||||
context 'when backups found' do
|
||||
xit
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user