Skip to content

Business intelligence made simple

Updated style [skip ci]

Andrew Kanee0127e9df67d
diff --git a/test/anomaly_checks_test.rb b/test/anomaly_checks_test.rb
index 9996acb2..7dffa08e 100644
--- a/test/anomaly_checks_test.rb
+++ b/test/anomaly_checks_test.rb
@@ -23,6 +23,8 @@ class AnomalyChecksTest < ActionDispatch::IntegrationTest
assert_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.rb
index c290c6f8..0ee82f36 100644
--- a/test/checks_test.rb
+++ b/test/checks_test.rb
@@ -167,6 +167,8 @@ class ChecksTest < ActionDispatch::IntegrationTest
end
end
+ private
+
def assert_slack_messages(expected)
count = 0
stub_method(Blazer::SlackNotifier, :post_api, ->(*) { count += 1 }) do
diff --git a/test/dashboards_test.rb b/test/dashboards_test.rb
index b0e56b5d..5ed8eac9 100644
--- a/test/dashboards_test.rb
+++ b/test/dashboards_test.rb
@@ -56,6 +56,8 @@ class DashboardsTest < ActionDispatch::IntegrationTest
assert_redirected_to blazer.dashboard_path(dashboard)
end
+ private
+
def create_dashboard
Blazer::Dashboard.create!(name: "Test")
end
diff --git a/test/forecasting_test.rb b/test/forecasting_test.rb
index f8b67c1b..853a5d21 100644
--- a/test/forecasting_test.rb
+++ b/test/forecasting_test.rb
@@ -18,6 +18,8 @@ class ForecastingTest < ActionDispatch::IntegrationTest
assert_forecast("trend")
end
+ private
+
def assert_forecast(forecasting)
skip unless postgresql?
diff --git a/test/uploads_test.rb b/test/uploads_test.rb
index 84861612..259cc576 100644
--- a/test/uploads_test.rb
+++ b/test/uploads_test.rb
@@ -108,6 +108,8 @@ class UploadsTest < ActionDispatch::IntegrationTest
assert_match "Duplicate column name: a", response.body
end
+ 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