diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-12-07 10:30:56 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-07 10:30:56 -0500 |
commit | c35a26028f94133f79245c156f4c35b7edb4e1b2 (patch) | |
tree | 7b7e061b53ea2d28f057bff46eee20329dbd3373 | |
parent | 3d5c7d1919c51a988388ba95d2563c6003ec7ce3 (diff) | |
parent | 73bec3c0368c207e6bf6d523d088281c13493422 (diff) | |
download | rack-c35a26028f94133f79245c156f4c35b7edb4e1b2.tar.gz |
Merge pull request #1133 from tonytonyjan/patch-typo
fix typo
-rw-r--r-- | test/spec_session_cookie.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/spec_session_cookie.rb b/test/spec_session_cookie.rb index a019d95b..9201a729 100644 --- a/test/spec_session_cookie.rb +++ b/test/spec_session_cookie.rb @@ -103,13 +103,13 @@ describe Rack::Session::Cookie do end describe 'JSON' do - it 'marshals and base64 encodes' do + it 'JSON and base64 encodes' do coder = Rack::Session::Cookie::Base64::JSON.new obj = %w[fuuuuu] coder.encode(obj).must_equal [::JSON.dump(obj)].pack('m') end - it 'marshals and base64 decodes' do + it 'JSON and base64 decodes' do coder = Rack::Session::Cookie::Base64::JSON.new str = [::JSON.dump(%w[fuuuuu])].pack('m') coder.decode(str).must_equal ::JSON.parse(str.unpack('m').first) |