mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-05 15:31:47 +01:00
fix failing test for some error messages
This commit is contained in:
parent
6b36d6eb8f
commit
d57bd479f9
3 changed files with 9 additions and 7 deletions
|
|
@ -38,7 +38,7 @@ class Project < ActiveRecord::Base
|
|||
|
||||
validates_presence_of :name
|
||||
validates_length_of :name, :maximum => 255
|
||||
validates_uniqueness_of :name, :scope =>"user_id"
|
||||
validates_uniqueness_of :name, :scope => "user_id"
|
||||
validates_does_not_contain :name, :string => ','
|
||||
|
||||
acts_as_list :scope => 'user_id = #{user_id} AND state = \'#{state}\''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue