Skip to content

Business intelligence made simple

Added more tests

Andrew Kane89c281ad53d7
diff --git a/test/checks_test.rb b/test/checks_test.rb
new file mode 100644
index 00000000..09d1f5f8
--- /dev/null
+++ b/test/checks_test.rb
@@ -0,0 +1,8 @@
+require_relative "test_helper"
+
+class ChecksTest < ActionDispatch::IntegrationTest
+ def test_index
+ get blazer.checks_path
+ assert_response :success
+ end
+end
diff --git a/test/dashboards_test.rb b/test/dashboards_test.rb
new file mode 100644
index 00000000..8e83b8c1
--- /dev/null
+++ b/test/dashboards_test.rb
@@ -0,0 +1,8 @@
+require_relative "test_helper"
+
+class DashboardsTest < ActionDispatch::IntegrationTest
+ def test_new
+ get blazer.new_dashboard_path
+ assert_response :success
+ end
+end
diff --git a/test/controller_test.rb b/test/queries_test.rb
similarity index 94%
rename from test/controller_test.rb
rename to test/queries_test.rb
index d2af8cdc..a02c038b 100644
--- a/test/controller_test.rb
+++ b/test/queries_test.rb
@@ -1,6 +1,6 @@
require_relative "test_helper"
-class ControllerTest < ActionDispatch::IntegrationTest
+class QueriesTest < ActionDispatch::IntegrationTest
def setup
Blazer::Audit.delete_all
Blazer::Query.delete_all