mirror of
https://github.com/TracksApp/tracks.git
synced 2026-04-18 10:09:02 +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_presence_of :name
|
||||||
validates_length_of :name, :maximum => 255
|
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 => ','
|
validates_does_not_contain :name, :string => ','
|
||||||
|
|
||||||
acts_as_list :scope => 'user_id = #{user_id} AND state = \'#{state}\''
|
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.
|
# 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.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
||||||
# config.i18n.default_locale = :de
|
# config.i18n.default_locale = :de
|
||||||
|
|
||||||
# See Rails::Configuration for more options
|
# See Rails::Configuration for more options
|
||||||
if ( SITE_CONFIG['authentication_schemes'].include? 'cas')
|
if ( SITE_CONFIG['authentication_schemes'].include? 'cas')
|
||||||
#requires rubycas-client gem to be installed
|
#requires rubycas-client gem to be installed
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,13 @@ en:
|
||||||
errors:
|
errors:
|
||||||
models:
|
models:
|
||||||
project:
|
project:
|
||||||
name:
|
attributes:
|
||||||
blank: "project must have a name"
|
name:
|
||||||
too_long: "project name must be less than 256 characters"
|
blank: "project must have a name"
|
||||||
taken: "already exists"
|
too_long: "project name must be less than 256 characters"
|
||||||
invalid: "cannot contain the comma (',') character"
|
taken: "already exists"
|
||||||
|
messages:
|
||||||
|
invalid: "cannot contain the comma (',') character"
|
||||||
attributes:
|
attributes:
|
||||||
user:
|
user:
|
||||||
first_name: "First name"
|
first_name: "First name"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue