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 a6edbbf commit 0391aeaCopy full SHA for 0391aea
core/string/fixtures/freeze_magic_comment.rb
@@ -0,0 +1,3 @@
1
+# frozen_string_literal: true
2
+
3
+print (+ 'frozen string').frozen? ? 'immutable' : 'mutable'
core/string/uplus_spec.rb
@@ -16,5 +16,9 @@
16
17
output.equal?(input).should == true
18
end
19
20
+ it 'returns mutable copy despite freeze-magic-comment in file' do
21
+ ruby_exe(fixture(__FILE__, "freeze_magic_comment.rb")).should == 'mutable'
22
+ end
23
24
0 commit comments