   end
 
   test "default configuration" do
-    assert default_configuration == init_config
+    assert default_configuration() == init_config()
   end
 
   describe "using the application environment" do

    )
  end

  defp init_config do
    Config.initialize()
    Application.get_all_env(:appsignal)[:config]
  end

          ExampleApplication.PageController#also_ignored
      )
      add_to_application_env(:ignore_actions, actions)
      assert valid_configuration() |> Map.put(:ignore_actions, actions) == init_config()
      assert "ExampleApplication.PageController#ignored,ExampleApplication.PageController#also_ignored" == System.get_env("APPSIGNAL_IGNORE_ACTIONS")
    end

    test "ignore_errors" do
      errors = ~w(VerySpecificError AnotherError)
      add_to_application_env(:ignore_errors, errors)
      assert valid_configuration() |> Map.put(:ignore_errors, errors) == init_config()
      assert "VerySpecificError,AnotherError" == System.get_env("APPSIGNAL_IGNORE_ERRORS")
    end

    test "env" do
      add_to_application_env(:env, :prod)
      assert valid_configuration() |> Map.put(:env, :prod) == init_config()
      assert "prod" == System.get_env("APPSIGNAL_ENVIRONMENT")
    end

    test "enable_host_metrics" do
      add_to_application_env(:enable_host_metrics, false)
      assert valid_configuration() |> Map.put(:enable_host_metrics, false) == init_config()
      assert "false" == System.get_env("APPSIGNAL_ENABLE_HOST_METRICS")
    end

    test "log" do
      add_to_application_env(:log, "stdout")
      assert valid_configuration() |> Map.put(:log, "stdout") == init_config()
      assert "stdout" == System.get_env("APPSIGNAL_LOG")
    end

    test "log_path" do
      add_to_application_env(:log_path, "log/appsignal.log")
      assert valid_configuration() |> Map.put(:log_path, "log/appsignal.log") == init_config()
      assert "log/appsignal.log" == System.get_env("APPSIGNAL_LOG_FILE_PATH")
    end

    test "endpoint" do
      add_to_application_env(:endpoint, "https://push.staging.lol")
      assert valid_configuration() |> Map.put(:endpoint, "https://push.staging.lol") == init_config()
      assert "https://push.staging.lol" == System.get_env("APPSIGNAL_PUSH_API_ENDPOINT")
    end

    test "running_in_container" do
      add_to_application_env(:running_in_container, true)
      assert valid_configuration() |> Map.put(:running_in_container, true) == init_config()
      assert "true" == System.get_env("APPSIGNAL_RUNNING_IN_CONTAINER")
    end

    test "send_params" do
      add_to_application_env(:send_params, true)
      assert valid_configuration() |> Map.put(:send_params, true) == init_config()
      assert "true" == System.get_env("APPSIGNAL_SEND_PARAMS")
    end

    test "skip_session_data" do
      add_to_application_env(:skip_session_data, true)
      assert valid_configuration() |> Map.put(:skip_session_data, true) == init_config()
    end

    test "working_dir_path" do
      add_to_application_env(:working_dir_path, "/tmp/appsignal")
      assert valid_configuration() |> Map.put(:working_dir_path, "/tmp/appsignal") == init_config()
      assert "/tmp/appsignal" == System.get_env("APPSIGNAL_WORKING_DIR_PATH")
    end

    test "revision" do
      add_to_application_env(:revision, "03bd9e")
      assert valid_configuration() |> Map.put(:revision, "03bd9e") == init_config()
      assert "03bd9e" == System.get_env("APP_REVISION")
    end
  end
