summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2014-03-04 08:46:33 -0500
committerGravatar Adam Chlipala <adam@chlipala.net>2014-03-04 08:46:33 -0500
commit5b61100181d61708ad6c1047bd96cecf43630004 (patch)
tree74eaa6047d1c0a7049c08672ea43137182df004a /tests
parent79a91292adaa9cd76edaf986ffe6ac7e9093260c (diff)
Change Basis.getenv to return None outside the context of a web request
Diffstat (limited to 'tests')
-rw-r--r--tests/getenv.ur3
-rw-r--r--tests/getenv.urp3
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/getenv.ur b/tests/getenv.ur
new file mode 100644
index 00000000..42f48096
--- /dev/null
+++ b/tests/getenv.ur
@@ -0,0 +1,3 @@
+task initialize = fn _ =>
+ v <- getenv (blessEnvVar "USER");
+ return {}
diff --git a/tests/getenv.urp b/tests/getenv.urp
new file mode 100644
index 00000000..7acc7c70
--- /dev/null
+++ b/tests/getenv.urp
@@ -0,0 +1,3 @@
+allow env USER
+
+getenv