Skip to content

Commit

Permalink
fix for #382 resolves overagressive default ignore around word schema
Browse files Browse the repository at this point in the history
  • Loading branch information
danmayer committed Jul 10, 2020
1 parent 7340518 commit 283dc84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/coverband/configuration.rb
Expand Up @@ -40,7 +40,7 @@ class Configuration
# Heroku when building assets runs code from a dynamic directory
# /tmp was added to avoid coverage from /tmp/build directories during
# heroku asset compilation
IGNORE_DEFAULTS = %w[vendor/ .erb$ .slim$ /tmp internal:prelude schema.rb]
IGNORE_DEFAULTS = %w[vendor/ .erb$ .slim$ /tmp internal:prelude db/schema.rb]

# Add in missing files which were never loaded
# we need to know what all paths to check for unloaded files
Expand Down
4 changes: 2 additions & 2 deletions test/coverband/configuration_test.rb
Expand Up @@ -17,7 +17,7 @@ def setup

test "ignore works with equal" do
Coverband::Collectors::Coverage.instance.reset_instance
expected = ["vendor/", ".erb$", ".slim$", "/tmp", "internal:prelude", "schema.rb", "config/envionments"]
expected = ["vendor/", ".erb$", ".slim$", "/tmp", "internal:prelude", "db/schema.rb", "config/envionments"]
assert_equal expected, Coverband.configuration.ignore
end

Expand All @@ -31,7 +31,7 @@ def setup
".slim$",
"/tmp",
"internal:prelude",
"schema.rb",
"db/schema.rb",
"config/envionments",
"config/initializers"]
assert_equal expected, Coverband.configuration.ignore
Expand Down

0 comments on commit 283dc84

Please sign in to comment.