Added also test env backend.

This commit is contained in:
Martin Edenhofer 2013-08-04 23:38:03 +02:00
parent be6c6d2012
commit c87bd1a800

View file

@ -4,7 +4,7 @@ module Auth::TEST
def self.check( username, password, config, user )
# development systems
if !ENV['RAILS_ENV'] || ENV['RAILS_ENV'] == 'development'
if !ENV['RAILS_ENV'] || ENV['RAILS_ENV'] == 'development' || ENV['RAILS_ENV'] == 'test'
return user if password == 'test'
end