diff --git a/test/helper.rb b/test/helper.rb index bf87eff..b7a47ac 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -49,7 +49,7 @@ def rebuild_model options = {} include DataMapper::Resource include DataMapper::Validate include Paperclip::Resource - property :id, Integer, :serial => true + property :id, Serial property :other, String has_attached_file :avatar, options end diff --git a/test/paperclip_test.rb b/test/paperclip_test.rb index 40ecd85..9506cd0 100644 --- a/test/paperclip_test.rb +++ b/test/paperclip_test.rb @@ -21,7 +21,7 @@ class PaperclipTest < Test::Unit::TestCase include DataMapper::Resource include DataMapper::Validate include Paperclip::Resource - property :id, Integer, :serial => true + property :id, Serial property :other, String has_attached_file :file end