Skip to content

Commit

Permalink
Use assert_empty minitest helper
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosantoniodasilva committed Aug 27, 2020
1 parent 15135f7 commit 97aa37b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/controllers/internal_helpers_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def setup
end

test 'resources methods are not controller actions' do
assert @controller.class.action_methods.delete_if { |m| m.include? 'commenter' }.empty?
assert_empty @controller.class.action_methods.delete_if { |m| m.include? 'commenter' }
end

test 'require no authentication tests current mapping' do
Expand Down
2 changes: 1 addition & 1 deletion test/integration/lockable_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def send_unlock_request

sign_in_as_user(password: "invalid")
assert_contain 'Your account is locked.'
assert ActionMailer::Base.deliveries.empty?
assert_empty ActionMailer::Base.deliveries
end

test 'error message is configurable by resource name' do
Expand Down
2 changes: 1 addition & 1 deletion test/integration/registerable_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def user_sign_up
click_button "Cancel my account"
assert_contain "Bye! Your account has been successfully cancelled. We hope to see you again soon."

assert User.to_adapter.find_all.empty?
assert_empty User.to_adapter.find_all
end

test 'a user should be able to cancel sign up by deleting data in the session' do
Expand Down

0 comments on commit 97aa37b

Please sign in to comment.