Skip to content

Commit

Permalink
Test all DSL methods are mentioned in initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
olleolleolle committed Nov 24, 2023
1 parent 4e378a0 commit e4840ae
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/install_generator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ def test_creates_initializer_file

assert_file("config/initializers/data_checks.rb") do |content|
assert_includes content, "DataChecks.configure do"
%w[
:ensure_no
:ensure_any
:ensure_more
:ensure_less
:ensure_equal
].each do |dsl_method_name|
assert_includes content, dsl_method_name
end
end
end
end

0 comments on commit e4840ae

Please sign in to comment.