From fd86efa4810a711595092d56afd16adab2a6e7cd Mon Sep 17 00:00:00 2001 From: Corey Donohoe Date: Tue, 5 Aug 2014 21:41:10 -0700 Subject: [PATCH] fixups for config and add tests --- app.json | 2 +- test/app_test.rb | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 test/app_test.rb diff --git a/app.json b/app.json index 4f9bcc5..83a403a 100644 --- a/app.json +++ b/app.json @@ -20,7 +20,7 @@ }, "CAMO_KEY": { "description": "The fully qualified domain name for camo to run on.", - "generator": "secret" + "generator": "secret", "required": true }, "CAMO_LENGTH_LIMIT": { diff --git a/test/app_test.rb b/test/app_test.rb new file mode 100644 index 0000000..0f6284a --- /dev/null +++ b/test/app_test.rb @@ -0,0 +1,12 @@ +require 'rubygems' +require 'json' +require 'test/unit' + +class CamoAppTest < Test::Unit::TestCase + def test_heroku_app_json + app_file = File.expand_path("../../app.json", __FILE__) + assert_nothing_raised do + JSON.parse(File.read(app_file)) + end + end +end