Permalink
Browse files

small update to fix syntax of validation in a spec

  • Loading branch information...
whoahbot committed Jun 2, 2010
1 parent 0a993c0 commit 9694a76ce6757d6e362209063a06065a7cf331c1
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/dm_redis_validations_spec.rb
@@ -15,7 +15,7 @@
it "should validate unique entries that are indexed" do
class Crumblecake
include DataMapper::Resource
- validates_is_unique :flavor
+ validates_uniqueness_of :flavor
property :id, Serial
property :flavor, String, :index => true

0 comments on commit 9694a76

Please sign in to comment.