From 20ad070eda952220913d8175b8b343e6ccf82c1e Mon Sep 17 00:00:00 2001 From: Jon Carstens Date: Thu, 20 May 2021 14:47:46 -0600 Subject: [PATCH] Fix quick_configure/1 This was hardcoding `"apn"` instead of using the user-supplied apn value. --- lib/vintage_net_qmi/cookbook.ex | 2 +- test/vintage_net_qmi/cookbook_test.exs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vintage_net_qmi/cookbook.ex b/lib/vintage_net_qmi/cookbook.ex index 2e95176..f255004 100644 --- a/lib/vintage_net_qmi/cookbook.ex +++ b/lib/vintage_net_qmi/cookbook.ex @@ -14,7 +14,7 @@ defmodule VintageNetQMI.Cookbook do %{ type: VintageNetQMI, vintage_net_qmi: %{ - service_providers: [%{apn: "apn"}] + service_providers: [%{apn: apn}] } }} end diff --git a/test/vintage_net_qmi/cookbook_test.exs b/test/vintage_net_qmi/cookbook_test.exs index 3143163..fdb1e36 100644 --- a/test/vintage_net_qmi/cookbook_test.exs +++ b/test/vintage_net_qmi/cookbook_test.exs @@ -4,7 +4,7 @@ defmodule VintageNetQMI.CookbookTest do alias VintageNetQMI.Cookbook test "simple/1" do - assert {:ok, %{type: VintageNetQMI, vintage_net_qmi: %{service_providers: [%{apn: "apn"}]}}} == + assert {:ok, %{type: VintageNetQMI, vintage_net_qmi: %{service_providers: [%{apn: "super"}]}}} == Cookbook.simple("super") end end