diff options
Diffstat (limited to 'test/spec_lint.rb')
-rw-r--r-- | test/spec_lint.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/spec_lint.rb b/test/spec_lint.rb index d99c1aa3..c7b195f9 100644 --- a/test/spec_lint.rb +++ b/test/spec_lint.rb @@ -483,7 +483,7 @@ describe Rack::Lint do end def assert_lint(*args) - hello_str = "hello world" + hello_str = "hello world".dup hello_str.force_encoding(Encoding::ASCII_8BIT) Rack::Lint.new(lambda { |env| @@ -498,8 +498,8 @@ describe Rack::Lint do assert_lint 0 assert_lint 1 assert_lint nil - assert_lint nil, '' - assert_lint 1, '' + assert_lint nil, ''.dup + assert_lint 1, ''.dup end end |