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