Showing posts with label matcher. Show all posts
Showing posts with label matcher. Show all posts

Ultimate rspec matcher to test named_scope or scoped

After having a good practice on using Ultimate rspec matcher to test validation I think it's time to implement one for testing named scopes - custom finders. Testing these finders is daily task. Here is how it can be done with minimum amount of code and maximum readability.
Copyright © Spesial Unik. All rights reserved. Template by CB. Theme Framework: Responsive Design