summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTyler Mauthe <me@tylermauthe.com>2016-12-09 00:39:35 -0800
committerGitHub <noreply@github.com>2016-12-09 00:39:35 -0800
commit953e16c254d8108167e391cc2104b9dffc725536 (patch)
tree9e8b8139d9bfa3cfc51221182d2607aa2be173f4 /test
parentfe9af96a66df3e062a1e7602732dd8bbb3d885e2 (diff)
parent1315cac7c303429bdfc56ef061d98b158bf67b4d (diff)
Merge pull request #27 from jtheoof/master
add error string when widget not rendered
Diffstat (limited to 'test')
-rw-r--r--test/app_test.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/app_test.rb b/test/app_test.rb
index 36cd310..0eb6f3a 100644
--- a/test/app_test.rb
+++ b/test/app_test.rb
@@ -137,6 +137,14 @@ class AppTest < Dashing::Test
end
end
+ def test_get_nonexistent_widget
+ with_generated_project do
+ get '/views/nowidget.html'
+ assert_equal 200, last_response.status
+ assert_equal last_response.body, 'Drats! Unable to find a widget file named: nowidget to render.'
+ end
+ end
+
def with_generated_project
source_path = File.expand_path('../../templates', __FILE__)