Skip to content
Browse files

Remove duplicate spec; add in_array

  • Loading branch information...
1 parent 4ce7729 commit 02db8dcb9c80c13f2327605939aaa18683002212 @potomak potomak committed Jul 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
2 README.md
@@ -30,7 +30,7 @@ Matchers to test validations and mass assignments:
it { should validate_presence_of(:body).with_message(/wtf/) }
it { should validate_presence_of(:title) }
it { should validate_numericality_of(:user_id) }
- it { should validate_uniqueness_of(:title) }
+ it { should ensure_inclusion_of(:status).in_array(['draft', 'public']) }
end
describe User do

0 comments on commit 02db8dc

Please sign in to comment.
Something went wrong with that request. Please try again.