Skip to content

Commit

Permalink
Merge pull request #1133 from tonytonyjan/patch-typo
Browse files Browse the repository at this point in the history
fix typo
  • Loading branch information
rafaelfranca authored Dec 7, 2016
2 parents 3d5c7d1 + 73bec3c commit c35a260
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/spec_session_cookie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,13 @@ def response_for(options={})
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)
Expand Down

0 comments on commit c35a260

Please sign in to comment.