Skip to content

Instantly share code, notes, and snippets.

@scottswezey
Created March 26, 2018 04:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottswezey/c73224d054d6fb0c5cecd56eab7c8d01 to your computer and use it in GitHub Desktop.
Save scottswezey/c73224d054d6fb0c5cecd56eab7c8d01 to your computer and use it in GitHub Desktop.
test "converts Sid param key to sid" do
conn = build_conn(:get, "/hello?Sid=123", "Test=abc")
%{conn | query_params: Plug.Conn.fetch_query_params(conn)}
conn = FinessTwilioParamsPlug.call(conn, @opts)
assert conn.params == %{"sid" => "123", "test" => "abc"}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment