Skip to content

Commit d500246

Browse files
committed
Add coverage for ransackable_* methods
With this we now have 100% coverage.
1 parent a623738 commit d500246

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

test/models/admin_user_test.rb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
require "test_helper"
44

55
class AdminUserTest < ActiveSupport::TestCase
6-
# test "the truth" do
7-
# assert true
8-
# end
6+
test "ransackable_attributes" do
7+
assert AdminUser.ransackable_attributes
8+
end
9+
10+
test "ransackable_associations" do
11+
assert_empty AdminUser.ransackable_associations
12+
end
913
end

0 commit comments

Comments
 (0)