end
assert_response :success
assert_equal "text/plain", @response.content_type
- assert_equal " ", @response.body
+ assert_equal "", @response.body
assert_equal "new_value", UserPreference.find(1, "key").v
assert_equal "value", UserPreference.find(1, "new_key").v
assert_raises ActiveRecord::RecordNotFound do
end
assert_response :success
assert_equal "text/plain", @response.content_type
- assert_equal " ", @response.body
+ assert_equal "", @response.body
assert_equal "new_value", UserPreference.find(1, "new_key").v
# try changing the value of a preference
end
assert_response :success
assert_equal "text/plain", @response.content_type
- assert_equal " ", @response.body
+ assert_equal "", @response.body
assert_equal "newer_value", UserPreference.find(1, "new_key").v
end
end
assert_response :success
assert_equal "text/plain", @response.content_type
- assert_equal " ", @response.body
+ assert_equal "", @response.body
assert_raises ActiveRecord::RecordNotFound do
UserPreference.find(1, "key")
end