Top Level Namespace
Defined Under Namespace
Modules: Validator
Instance Method Summary collapse
-
#config ⇒ Object
Automatically configure RSpec to support validator specs.
Instance Method Details
#config ⇒ Object
Automatically configure RSpec to support validator specs.
14 15 16 17 18 19 20 21 |
# File 'lib/validator/matchers.rb', line 14 RSpec.configure do |config| config.(file_path: %r{/spec/validators/}) do || [:type] = :validator end config.include Validator::Matchers::ModelSpecHelper, type: :model config.include Validator::Matchers::ValidatorSpecHelper, type: :validator end |