```ruby
desc "Run all tests"
task :testall => [:setenv, :spec, :cucumber]

task :setenv do
  ENV["RAILS_ENV"] = 'test'
end

```

Add ci:test task for jenkins. Bring back the workaround to run spec tests always in test env. rename testall to test
user
```ruby
desc "Run all tests"

task :test => [:spec, :cucumber]

task :spec do
  next unless Rails.env == 'development'
  p "'rake spec' called from development env, forward it to 'rake RAILS_ENV=test spec'"
  system('rake RAILS_ENV=test spec')
end

namespace :ci do
  task :test => 'rake:test'
end
```
assistant