Skip to content

Commit

Permalink
Add String#+@ in conjunction with freeze-magic-comment spec
Browse files Browse the repository at this point in the history
  • Loading branch information
mjago committed Nov 8, 2016
1 parent a6edbbf commit 0391aea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/string/fixtures/freeze_magic_comment.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# frozen_string_literal: true

print (+ 'frozen string').frozen? ? 'immutable' : 'mutable'
4 changes: 4 additions & 0 deletions core/string/uplus_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,9 @@

output.equal?(input).should == true
end

it 'returns mutable copy despite freeze-magic-comment in file' do
ruby_exe(fixture(__FILE__, "freeze_magic_comment.rb")).should == 'mutable'
end
end
end

0 comments on commit 0391aea

Please sign in to comment.