Validating Contract Scope Validator Inheritance in grape
This test suite validates the contract scope validator functionality in the Grape validation framework. It focuses on testing inheritance behavior and proper implementation of the validator base class, ensuring robust validation handling within Grape applications.
Test Coverage Overview
Implementation Analysis
Technical Details
Best Practices Demonstrated
ruby-grape/grape
spec/grape/validations/validators/contract_scope_validator_spec.rb
# frozen_string_literal: true
describe Grape::Validations::Validators::ContractScopeValidator do
describe '.inherits' do
subject { described_class }
it { is_expected.to be < Grape::Validations::Validators::Base }
end
end