Skip to content

Commit 750e917

Browse files
committed
Add missing version guard for the Kernel#pp spec.
PullRequest: truffleruby/691
2 parents c476ed3 + bbb4e6d commit 750e917

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

spec/ruby/core/kernel/pp_spec.rb

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
require_relative '../../spec_helper'
22

3-
describe "Kernel#pp" do
4-
it "lazily loads the 'pp' library and delegates the call to that library" do
5-
# Run in child process to ensure 'pp' hasn't been loaded yet.
6-
output = ruby_exe("pp [1, 2, 3]")
7-
output.should == "[1, 2, 3]\n"
3+
ruby_version_is "2.5" do
4+
describe "Kernel#pp" do
5+
it "lazily loads the 'pp' library and delegates the call to that library" do
6+
# Run in child process to ensure 'pp' hasn't been loaded yet.
7+
output = ruby_exe("pp [1, 2, 3]")
8+
output.should == "[1, 2, 3]\n"
9+
end
810
end
911
end

0 commit comments

Comments
 (0)