Skip to content

Commit

Permalink
Update expectation
Browse files Browse the repository at this point in the history
An internal `send` was removed in
sorbet/sorbet@da74886
which affects the tests
  • Loading branch information
KaanOzkan committed Apr 23, 2024
1 parent 92d5818 commit f6db917
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
30 changes: 15 additions & 15 deletions test/spoom/cli/srb/coverage_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ def test_display_metrics
without signature: 12 (86%)
Calls:
typed: 6 (86%)
untyped: 1 (14%)
typed: 5 (83%)
untyped: 1 (17%)
MSG
assert_equal(0, @project.glob("spoom_data/*.json").size)
end
Expand Down Expand Up @@ -123,8 +123,8 @@ def test_display_metrics_do_not_show_errors
without signature: 13 (87%)
Calls:
typed: 6 (60%)
untyped: 4 (40%)
typed: 5 (56%)
untyped: 4 (44%)
MSG
assert_equal(0, @project.glob("spoom_data/*.json").size)
end
Expand Down Expand Up @@ -157,8 +157,8 @@ def test_display_metrics_can_exclude_rbi_metrics
without signature: 8 (89%)
Calls:
typed: 6 (86%)
untyped: 1 (14%)
typed: 5 (83%)
untyped: 1 (17%)
MSG
end

Expand Down Expand Up @@ -204,8 +204,8 @@ def test_display_metrics_with_path_option
without signature: 12 (86%)
Calls:
typed: 6 (86%)
untyped: 1 (14%)
typed: 5 (83%)
untyped: 1 (17%)
MSG
project.destroy!
assert_equal(0, @project.glob("spoom_data/*.json").size)
Expand Down Expand Up @@ -254,8 +254,8 @@ def test_timeline_one_commit
without signature: 12 (86%)
Calls:
typed: 6 (86%)
untyped: 1 (14%)
typed: 5 (83%)
untyped: 1 (17%)
OUT
assert_equal("", result.err)
Expand Down Expand Up @@ -294,7 +294,7 @@ def test_timeline_multiple_commits
without signature: 5 (83%)
Calls:
typed: 4 (100%)
typed: 3 (100%)
Analyzing COMMIT (2 / 3)
Sorbet static: X.X.XXXX
Expand Down Expand Up @@ -322,7 +322,7 @@ def test_timeline_multiple_commits
without signature: 8 (89%)
Calls:
typed: 5 (100%)
typed: 4 (100%)
Analyzing COMMIT (3 / 3)
Sorbet static: X.X.XXXX
Expand Down Expand Up @@ -351,7 +351,7 @@ def test_timeline_multiple_commits
without signature: 9 (90%)
Calls:
typed: 5 (100%)
typed: 4 (100%)
OUT
assert_equal("", result.err)
Expand Down Expand Up @@ -390,7 +390,7 @@ def test_timeline_multiple_commits_between_dates
without signature: 5 (83%)
Calls:
typed: 4 (100%)
typed: 3 (100%)
Analyzing COMMIT (2 / 2)
Sorbet static: X.X.XXXX
Expand Down Expand Up @@ -418,7 +418,7 @@ def test_timeline_multiple_commits_between_dates
without signature: 8 (89%)
Calls:
typed: 5 (100%)
typed: 4 (100%)
OUT
assert_equal("", result.err)
Expand Down
4 changes: 2 additions & 2 deletions test/spoom/snapshot_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def test_snapshot_project
assert_equal(9, snapshot.classes)
assert_equal(1, snapshot.methods_with_sig)
assert_equal(13, snapshot.methods_without_sig)
assert_equal(6, snapshot.calls_typed)
assert_equal(5, snapshot.calls_typed)
assert_equal(1, snapshot.calls_untyped)
assert_equal(1, snapshot.methods_with_sig_excluding_rbis)
assert_equal(8, snapshot.methods_without_sig_excluding_rbis)
Expand All @@ -74,7 +74,7 @@ def test_snapshot_project_without_rbi
assert_equal(5, snapshot.classes)
assert_equal(1, snapshot.methods_with_sig)
assert_equal(8, snapshot.methods_without_sig)
assert_equal(6, snapshot.calls_typed)
assert_equal(5, snapshot.calls_typed)
assert_equal(1, snapshot.calls_untyped)
assert_equal(1, snapshot.methods_with_sig_excluding_rbis)
assert_equal(8, snapshot.methods_without_sig_excluding_rbis)
Expand Down

0 comments on commit f6db917

Please sign in to comment.