mongoid-rspec icon indicating copy to clipboard operation
mongoid-rspec copied to clipboard

ensure_inclusion_of instead validate_inclusion_of and alike?

Open pablox-cl opened this issue 10 years ago • 1 comments

I was seeing that some of the rspec-mongoid matchers are similar to the ones from shoulda matchers, but some have minor differences, like using ensure instead of validate. Shouldn't they be similar to be more consistent?

pablox-cl avatar Feb 22 '14 19:02 pablox-cl

@PaBLoX-CL The mongoid-rspec has no expectation to keep the api consistent with shoulda-matcher, however if you submit a PR that implements an alias, maybe we can merge it.

rodrigopinto avatar Sep 24 '14 22:09 rodrigopinto