All Projects → bogdan → Accept_values_for

bogdan / Accept_values_for

Licence: mit
Rspec matchers to test ActiveModel validation that follows BDD.

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Accept values for

Wtforms
A flexible forms validation and rendering library for Python.
Stars: ✭ 1,214 (+1078.64%)
Mutual labels:  validation
Monkeytail
Macro derived validation for cats.data.Validated
Stars: ✭ 87 (-15.53%)
Mutual labels:  validation
Graphql Go Tools
Tools to write high performance GraphQL applications using Go/Golang.
Stars: ✭ 96 (-6.8%)
Mutual labels:  validation
Vue Rawmodel
RawModel.js plugin for Vue.js v2. Form validation has never been easier!
Stars: ✭ 79 (-23.3%)
Mutual labels:  validation
React Native Merlin
🧙 Simple web-like forms in react native.
Stars: ✭ 83 (-19.42%)
Mutual labels:  validation
Validator Collection
Python library of 60+ commonly-used validator functions
Stars: ✭ 91 (-11.65%)
Mutual labels:  validation
Paraspec
Parallel RSpec test runner
Stars: ✭ 77 (-25.24%)
Mutual labels:  rspec
Play2 Html5tags
HTML5 form tags module for Play Framework
Stars: ✭ 101 (-1.94%)
Mutual labels:  validation
Filetype
Fast, dependency-free, small Go package to infer the binary file type based on the magic numbers signature
Stars: ✭ 1,278 (+1140.78%)
Mutual labels:  validation
Flask pydantic
flask extension for integration with the awesome pydantic package
Stars: ✭ 96 (-6.8%)
Mutual labels:  validation
Legit
input validation framework
Stars: ✭ 81 (-21.36%)
Mutual labels:  validation
Protoc Gen Validate
protoc plugin to generate polyglot message validators
Stars: ✭ 1,241 (+1104.85%)
Mutual labels:  validation
Ngx Dynamic Form Builder
FormBuilder + class-transformer + class-validator = dynamic form group builder for Angular10+
Stars: ✭ 93 (-9.71%)
Mutual labels:  validation
Utf 8 Validate
Check if a buffer contains valid UTF-8
Stars: ✭ 78 (-24.27%)
Mutual labels:  validation
Angular Multi Step Wizard
Tutorials on building an Angular 4 Multi-Step Wizard with its own Router
Stars: ✭ 96 (-6.8%)
Mutual labels:  validation
Fake ftp
A fake FTP server for use with ruby tests
Stars: ✭ 77 (-25.24%)
Mutual labels:  rspec
Fluidvalidator
General purpose validation system for objects, nested objects, enumerables written in Swift
Stars: ✭ 89 (-13.59%)
Mutual labels:  validation
Gltf Asset Generator
Tool for generating various glTF assets for importer validation
Stars: ✭ 103 (+0%)
Mutual labels:  validation
Rspec api documentation
Automatically generate API documentation from RSpec
Stars: ✭ 1,366 (+1226.21%)
Mutual labels:  rspec
Validates timeliness
Date and time validation plugin for ActiveModel and Rails. Supports multiple ORMs and allows custom date/time formats.
Stars: ✭ 1,319 (+1180.58%)
Mutual labels:  validation

AcceptValuesFor

Writing specs for complex validations is annoying. AcceptValuesFor makes it easy to test your validations with real world values, asserting which values should be accepted by your model and which should not.

Read the original blog post.

Gem Version Build Status Code Climate

Usage

describe User do
  describe "validation" do
    subject(:user) { User.new }

    it { should accept_values_for(:email, "[email protected]", "[email protected]") }
    it { should_not accept_values_for(:email, nil, " ", "john", "[email protected]") }
  end
end

Dependencies

  • Active Model (5 or 6)
  • RSpec (3)

Installation

Gemfile

group :test do
  gem "accept_values_for"
end

Self-Promotion

Like AcceptValuesFor?

Watch the repository on GitHub and read my blog.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].