update missing check spec to mock RACK_ENV

The spec result has a precondition in the expectations.
The RACK_ENV must be `development` and causes the test to
fail based on test execution order in scenarios where a
previous test set a different expectation in the env.
This commit is contained in:
Jeffrey Martin
2022-06-15 10:05:16 -05:00
parent be48b1481a
commit 9b7da41e3d
+4
View File
@@ -256,6 +256,10 @@ RSpec.describe "Metasploit's json-rpc" do
end
context 'when the module does not support a check method' do
before do
mock_rack_env('development')
end
let(:module_name) { 'scanner/http/title' }
it 'returns successful job results' do