We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d57cf8f commit 65a40a9Copy full SHA for 65a40a9
spec/lib/msf/core/module_set_spec.rb
@@ -85,7 +85,26 @@
85
end
86
87
context 'without Rank' do
88
- it 'is ranked as Normal'
+ before(:each) do
89
+ stub_const('A', a_class)
90
+ hide_const('A::Rank')
91
+
92
+ stub_const('B', b_class)
93
+ stub_const('B::Rank', Msf::AverageRanking)
94
95
+ stub_const('C', c_class)
96
+ stub_const('C::Rank', Msf::GoodRanking)
97
+ end
98
99
+ it 'is ranked as Normal' do
100
+ expect(rank_modules).to eq(
101
+ [
102
+ ['c', Msf::SymbolicModule],
103
+ ['a', Msf::SymbolicModule],
104
+ ['b', Msf::SymbolicModule]
105
+ ]
106
+ )
107
108
109
110
0 commit comments