igorkasyanchuk / active_storage_validations

Do it like => validates :photos, attached: true, content_type: ['image/png', 'image/jpg', 'image/jpeg'], size: { less_than: 500.kilobytes }, limit: { min: 1, max: 3 }, aspect_ratio: :landscape, dimension: { width: { in: 800..1600 }
https://www.railsjazz.com/
MIT License
1.02k stars 130 forks source link

Add a :on method on our test matchers #215

Closed Mth0158 closed 11 months ago

Mth0158 commented 12 months ago

You can read #209 to have an idea of what should be done. This matcher method should be available on all matchers, probably a good idea to use a concern to keep DRY. Add the tests accordingly