fix failing test for some error messages

This commit is contained in:
Reinier Balt 2010-11-09 15:51:21 +01:00
parent 6b36d6eb8f
commit d57bd479f9
3 changed files with 9 additions and 7 deletions

View file

@ -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}\''

View file

@ -64,7 +64,7 @@ Rails::Initializer.run do |config|
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
# config.i18n.default_locale = :de
# See Rails::Configuration for more options
if ( SITE_CONFIG['authentication_schemes'].include? 'cas')
#requires rubycas-client gem to be installed

View file

@ -3,11 +3,13 @@ en:
errors:
models:
project:
name:
blank: "project must have a name"
too_long: "project name must be less than 256 characters"
taken: "already exists"
invalid: "cannot contain the comma (',') character"
attributes:
name:
blank: "project must have a name"
too_long: "project name must be less than 256 characters"
taken: "already exists"
messages:
invalid: "cannot contain the comma (',') character"
attributes:
user:
first_name: "First name"