Permalink
Browse files

Merge pull request #136 from potomak/patch-1

Remove duplicate spec; add in_array
  • Loading branch information...
2 parents 4ce7729 + 02db8dc commit b1866eb24500dba003c0bfc87739d50ab0fbe178 Gabe Berke-Williams committed Jul 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
@@ -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 b1866eb

Please sign in to comment.