Skip to content

Commit 3e03e55

Browse files
committed
fix: add assertion to example block
1 parent f5a2656 commit 3e03e55

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/rubocop/cop/rspec_rails/minitest_assertions.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ module RSpecRails
1818
# refute_empty(b)
1919
# assert_true(a)
2020
# assert_false(a)
21+
# assert_response :ok
2122
#
2223
# # good
2324
# expect(b).to eq(a)
@@ -28,6 +29,7 @@ module RSpecRails
2829
# expect(a).not_to be_empty
2930
# expect(a).to be(true)
3031
# expect(a).to be(false)
32+
# expect(response).to have_http_status(:ok)
3133
#
3234
class MinitestAssertions < ::RuboCop::Cop::Base
3335
extend AutoCorrector

0 commit comments

Comments
 (0)