From b49e1c71b3c1cd04335a4763ae09695f07132921 Mon Sep 17 00:00:00 2001 From: Johannes Huning Date: Mon, 11 Jun 2012 15:00:18 +0200 Subject: [PATCH] Correct name to `assert_json_value` in README.md --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 81f6ad3..a0b7267 100644 --- a/README.md +++ b/README.md @@ -257,20 +257,20 @@ otherwise. #### assert_json_value -Assert that the body received with the response `Res` contains a JSON object, which under the key `Key` contains exactly `Val`, fail with `assert_json_val` otherwise. +Assert that the body received with the response `Res` contains a JSON object, which under the key `Key` contains exactly `Val`, fail with `assert_json_value` otherwise. ```erlang % Test Macro. -?assert_json_val(Key, Val, Res). +?assert_json_value(Key, Val, Res). % Test Generator Macro. -?assert_json_val(Key, Val, Res). +?assert_json_value(Key, Val, Res). % Key = binary() | [binary()] % Val = atom() | binary() | list() | integer() | float() | {list()} % Examples: -?assert_json_val(<<"message">>, <<"Hello World">>, Res). -?assert_json_val(<<"should_reload">>, true, Res). -?assert_json_val([<<"messages">>, <<"de">>], <<"Hallo Welt">>, Res). +?assert_json_value(<<"message">>, <<"Hello World">>, Res). +?assert_json_value(<<"should_reload">>, true, Res). +?assert_json_value([<<"messages">>, <<"de">>], <<"Hallo Welt">>, Res). ```