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