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 2f31fd3 commit 61467d6Copy full SHA for 61467d6
spec/lib/ruby_dep/warning_spec.rb
@@ -116,6 +116,22 @@ def rquote(str)
116
end
117
118
119
+ context 'with JRuby head' do
120
+ context 'when the JRuby is not known to be vulnerable' do
121
+ let(:ruby_version) { '2.3.0' }
122
+ let(:ruby_engine) { 'jruby' }
123
+ it 'does not show warning about vulnerability' do
124
+ expect(STDERR).to_not have_received(:puts)
125
+ end
126
+
127
+ it 'does not show a recommendation' do
128
+ expect(STDERR).to_not have_received(:puts).with(
129
+ /RubyDep: Your Ruby is:/)
130
+ expect(STDERR).to_not have_received(:puts).with(/Recommendation:/)
131
132
133
134
135
context 'with an untracked ruby' do
136
context 'when the Ruby is not listed' do
137
let(:ruby_version) { '1.2.3' }
0 commit comments