mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-21 21:40:48 +02: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}\''
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue