aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/cases/type/string_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activemodel/test/cases/type/string_test.rb')
-rw-r--r--activemodel/test/cases/type/string_test.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/activemodel/test/cases/type/string_test.rb b/activemodel/test/cases/type/string_test.rb
index 47d412e27e..825c8bb246 100644
--- a/activemodel/test/cases/type/string_test.rb
+++ b/activemodel/test/cases/type/string_test.rb
@@ -1,5 +1,6 @@
+# frozen_string_literal: true
+
require "cases/helper"
-require "active_model/type"
module ActiveModel
module Type
@@ -14,7 +15,7 @@ module ActiveModel
test "cast strings are mutable" do
type = Type::String.new
- s = "foo"
+ s = "foo".dup
assert_equal false, type.cast(s).frozen?
assert_equal false, s.frozen?