Skip to content

Commit

Permalink
Fix wrong identation and remove extra spaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Oct 12, 2011
1 parent 1b6886a commit f23f5ec
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions actionpack/test/dispatch/cookies_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -441,19 +441,16 @@ def test_deletings_cookie_with_several_preset_domains_using_other_domain
assert_response :success
assert_cookie_header "user_name=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT"
end


def test_cookies_hash_is_indifferent_access
get :symbol_key
assert_equal "david", cookies[:user_name]
assert_equal "david", cookies['user_name']
get :string_key
assert_equal "dhh", cookies[:user_name]
assert_equal "dhh", cookies['user_name']
get :symbol_key
assert_equal "david", cookies[:user_name]
assert_equal "david", cookies['user_name']
get :string_key
assert_equal "dhh", cookies[:user_name]
assert_equal "dhh", cookies['user_name']
end



def test_setting_request_cookies_is_indifferent_access
@request.cookies.clear
@request.cookies[:user_name] = "andrew"
Expand Down

0 comments on commit f23f5ec

Please sign in to comment.