Skip to content

Business intelligence made simple

Added more tests for checks [skip ci]

Andrew Kane748d8463c4a7
diff --git a/app/controllers/blazer/checks_controller.rb b/app/controllers/blazer/checks_controller.rb
index 58548945..faf43681 100644
--- a/app/controllers/blazer/checks_controller.rb
+++ b/app/controllers/blazer/checks_controller.rb
@@ -25,6 +25,9 @@ module Blazer
end
end
+ def edit
+ end
+
def update
if @check.update(check_params)
redirect_to query_path(@check.query)
diff --git a/test/checks_test.rb b/test/checks_test.rb
index 6f105a57..1019a3c8 100644
--- a/test/checks_test.rb
+++ b/test/checks_test.rb
@@ -38,6 +38,14 @@ class ChecksTest < ActionDispatch::IntegrationTest
assert_response :redirect
end
+ def test_edit
+ query = create_query
+ check = create_check(query: query, check_type: "bad_data")
+
+ get blazer.edit_check_path(check)
+ assert_response :success
+ end
+
def test_update
query = create_query
check = create_check(query: query, check_type: "bad_data")
@@ -61,6 +69,14 @@ class ChecksTest < ActionDispatch::IntegrationTest
end
end
+ def test_run
+ query = create_query
+ check = create_check(query: query, check_type: "bad_data")
+
+ get blazer.run_check_path(check)
+ assert_response :redirect
+ end
+
def test_bad_data
query = create_query
check = create_check(query: query, check_type: "bad_data")