From bf25475d2434452097abb14ab6f2df2c8a4ea856 Mon Sep 17 00:00:00 2001 From: mo khan Date: Sat, 22 Feb 2014 09:17:41 -0700 Subject: start to write quick visual acceptance test as a shell script. --- README.md | 6 ++---- bin/acceptance.sh | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 4 deletions(-) create mode 100755 bin/acceptance.sh diff --git a/README.md b/README.md index 4f7d65e..c25095b 100644 --- a/README.md +++ b/README.md @@ -98,11 +98,9 @@ LicenseStatus (flyweight, state) * GET /company/:guid/licenses?status=expired&township=:township - list of expired licenses for township, for company. #### todo -* error handling * rename license to well license -* add pagination to company licenses controller -* update application controller to inherit directly from metal controllers -* move secret token to env variable +* move secret token to env variable. +* cache additional payload data. #### nice to haves * simplecov diff --git a/bin/acceptance.sh b/bin/acceptance.sh new file mode 100755 index 0000000..dc2944b --- /dev/null +++ b/bin/acceptance.sh @@ -0,0 +1,14 @@ +#!/bin/bash +set -e + +TARGET_HOST=http://infinite-atoll-2481.herokuapp.com + +clear + +echo connecting to $TARGET_HOST +curl $TARGET_HOST +echo + +echo connecting to $TARGET_HOST/v1/licenses +curl $TARGET_HOST/v1/licenses +echo -- cgit v1.2.3