Skip to content

Commit 51d95b6

Browse files
committed
removed temp switch to 'informational' codecov & added first test for the BlockedItem model
1 parent 392887a commit 51d95b6

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/.codecov.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,11 @@ coverage:
99
target: auto
1010
threshold: 1%
1111
base: auto
12-
informational: true
1312
patch:
1413
default:
1514
target: auto
1615
threshold: 10%
1716
base: auto
18-
informational: true
1917
comment:
2018
layout: "condensed_header, condensed_files, components, condensed_footer"
2119
hide_project_coverage: false

test/models/blocked_item_test.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
require 'test_helper'
22

33
class BlockedItemTest < ActiveSupport::TestCase
4-
# test "the truth" do
5-
# assert true
6-
# end
4+
test 'predicates should correctly check item type' do
5+
['email', 'ip'].each do |type|
6+
assert blocked_items(type.to_sym).send("#{type}?")
7+
end
8+
end
79
end

0 commit comments

Comments
 (0)