File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -798,14 +798,17 @@ module VariableSpecs
798
798
end
799
799
800
800
describe 'Allowed characters' do
801
- it 'does not allow non-ASCII upcased characters at the beginning' do
802
- -> do
803
- eval <<-CODE
804
- def test
805
- ἍBB = 1
806
- end
807
- CODE
808
- end . should raise_error ( SyntaxError , /dynamic constant assignment/ )
801
+ ruby_version_is "2.6" do
802
+ # new feature in 2.6 -- https://bugs.ruby-lang.org/issues/13770
803
+ it 'does not allow non-ASCII upcased characters at the beginning' do
804
+ -> do
805
+ eval <<-CODE
806
+ def test
807
+ ἍBB = 1
808
+ end
809
+ CODE
810
+ end . should raise_error ( SyntaxError , /dynamic constant assignment/ )
811
+ end
809
812
end
810
813
811
814
it 'allows non-ASCII lowercased characters at the beginning' do
You can’t perform that action at this time.
0 commit comments