Skip to content

Commit d8170f8

Browse files
committed
[test] refactor to use describe instead of class
- hopefully this takes out some of the brittleness around assert_equal
1 parent 9cca46b commit d8170f8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/support/init_report_test.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33

44
require 'minitest_helper'
55

6-
class InitReportTest < Minitest::Test
7-
def test_report_format
6+
describe 'InitReportTest' do
7+
it 'report_format' do
88
init_kvs = ::AppOpticsAPM::Util.build_init_report
99
init_kvs.is_a?(Hash)
1010
end
1111

12-
def test_report_kvs
12+
it 'report_kvs' do
1313
init_kvs = ::AppOpticsAPM::Util.build_init_report
1414
init_kvs.has_key?("__Init").must_equal true
1515
init_kvs.has_key?("Force").must_equal true
@@ -19,7 +19,7 @@ def test_report_kvs
1919
end
2020

2121
# @deprecated
22-
def test_legacy_report_format
22+
it 'legacy_report_format' do
2323
init_kvs = ::AppOpticsAPM::Util.legacy_build_init_report
2424
init_kvs.is_a?(Hash)
2525
end

0 commit comments

Comments
 (0)