aboutsummaryrefslogtreecommitdiffstats
path: root/spec/rubyspec/core/string/upcase_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/rubyspec/core/string/upcase_spec.rb')
-rw-r--r--spec/rubyspec/core/string/upcase_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/rubyspec/core/string/upcase_spec.rb b/spec/rubyspec/core/string/upcase_spec.rb
index e23a9829d9..2fdcce86b9 100644
--- a/spec/rubyspec/core/string/upcase_spec.rb
+++ b/spec/rubyspec/core/string/upcase_spec.rb
@@ -22,6 +22,12 @@ describe "String#upcase" do
end
end
+ ruby_version_is '2.4' do
+ it "works for all of Unicode" do
+ "äöü".upcase.should == "ÄÖÜ"
+ end
+ end
+
it "taints result when self is tainted" do
"".taint.upcase.tainted?.should == true
"X".taint.upcase.tainted?.should == true