Business intelligence made simple
Updated style [skip ci]
Andrew Kanee0127e9df67d
diff --git a/test/anomaly_checks_test.rb b/test/anomaly_checks_test.rbindex 9996acb2..7dffa08e 100644--- a/test/anomaly_checks_test.rb+++ b/test/anomaly_checks_test.rb@@ -23,6 +23,8 @@ class AnomalyChecksTest < ActionDispatch::IntegrationTestassert_anomaly("anomaly_detection")end+ private+def assert_anomaly(anomaly_checks)skip if !postgresql? || RUBY_ENGINE == "truffleruby"diff --git a/test/checks_test.rb b/test/checks_test.rbindex c290c6f8..0ee82f36 100644--- a/test/checks_test.rb+++ b/test/checks_test.rb@@ -167,6 +167,8 @@ class ChecksTest < ActionDispatch::IntegrationTestendend+ private+def assert_slack_messages(expected)count = 0stub_method(Blazer::SlackNotifier, :post_api, ->(*) { count += 1 }) dodiff --git a/test/dashboards_test.rb b/test/dashboards_test.rbindex b0e56b5d..5ed8eac9 100644--- a/test/dashboards_test.rb+++ b/test/dashboards_test.rb@@ -56,6 +56,8 @@ class DashboardsTest < ActionDispatch::IntegrationTestassert_redirected_to blazer.dashboard_path(dashboard)end+ private+def create_dashboardBlazer::Dashboard.create!(name: "Test")enddiff --git a/test/forecasting_test.rb b/test/forecasting_test.rbindex f8b67c1b..853a5d21 100644--- a/test/forecasting_test.rb+++ b/test/forecasting_test.rb@@ -18,6 +18,8 @@ class ForecastingTest < ActionDispatch::IntegrationTestassert_forecast("trend")end+ private+def assert_forecast(forecasting)skip unless postgresql?diff --git a/test/uploads_test.rb b/test/uploads_test.rbindex 84861612..259cc576 100644--- a/test/uploads_test.rb+++ b/test/uploads_test.rb@@ -108,6 +108,8 @@ class UploadsTest < ActionDispatch::IntegrationTestassert_match "Duplicate column name: a", response.bodyend+ private+def create_upload(file: "line_items.csv", content_type: "text/csv")post blazer.uploads_path, params: {upload: {table: "line_items", description: "Billing line items", file: fixture_file_upload("test/support/#{file}", content_type)}}end