1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00

fix doc typo for validate_uniqueness_of

This commit is contained in:
Aaron Vasquez 2014-04-09 14:52:05 -04:00 committed by Elliot Winkler
parent d959505287
commit 3e93a3cb40

View file

@ -531,7 +531,7 @@ end
# RSpec
describe Post do
it { should validate_uniqueness_of(:permalink) }
it { should validate_uniqueness_of(:slug).scoped_to(:journal_id) }
it { should validate_uniqueness_of(:slug).scoped_to(:user_id) }
it { should validate_uniqueness_of(:key).case_insensitive }
it { should validate_uniqueness_of(:author_id).allow_nil }
@ -544,7 +544,7 @@ end
# Test::Unit
class PostTest < ActiveSupport::TestCase
should validate_uniqueness_of(:permalink)
should validate_uniqueness_of(:slug).scoped_to(:journal_id)
should validate_uniqueness_of(:slug).scoped_to(:user_id)
should validate_uniqueness_of(:key).case_insensitive
should validate_uniqueness_of(:author_id).allow_nil