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 bae5810 commit 87d1770Copy full SHA for 87d1770
spec/lib/msf/core/module_set_spec.rb
@@ -161,7 +161,26 @@
161
end
162
163
context 'without Rank' do
164
- it 'is ranked as Normal'
+ before(:each) do
165
+ stub_const('A', a_class)
166
+ hide_const('A::Rank')
167
+
168
+ stub_const('B', b_class)
169
+ stub_const('B::Rank', Msf::AverageRanking)
170
171
+ stub_const('C', c_class)
172
+ stub_const('C::Rank', Msf::GoodRanking)
173
+ end
174
175
+ it 'is ranked as Normal' do
176
+ expect(rank_modules).to eq(
177
+ [
178
+ ['c', c_class],
179
+ ['a', a_class],
180
+ ['b', b_class]
181
+ ]
182
+ )
183
184
185
186
0 commit comments