Showing posts with label rspec. Show all posts
Showing posts with label rspec. Show all posts

Thursday, February 2, 2012

Rspec validate_presence_of matcher with scope

it { should validate_uniqueness_of(:foo).scoped_to(:bar) }