southbridgeio / redmine_recurring_tasks

Plugin for creating scheduled tasks from templates
http://www.redmine.org/plugins/redmine_recurring_tasks
MIT License
40 stars 15 forks source link

Spec failed #15

Closed DanielBoettner closed 6 years ago

DanielBoettner commented 7 years ago

When doing

RAILS_ENV=production bundle exec rake redmine_recurring_tasks:exec

to test.

The output is:

spec failed. [DEPRECATION] last_comment is deprecated. Please use last_description instead. [DEPRECATION] last_comment is deprecated. Please use last_description instead.

Maybe you can give me a hint on where to investigate the error.

EDIT:

After adding "rspec-core" to the redmine gemfile.

The spec no longer fails. Output is now, 3 lines of

[DEPRECATION] last_comment is deprecated. Please use last_description instead.

Any hint on where to check why nothing is happening?

DanielBoettner commented 7 years ago

EDIT: I guess it did need the environment (sorry) ruby is not really my home.

After running: bundle exec rake redmine_recurring_tasks:exec RAILS_ENV=production --trace

The output is:

[DEPRECATION] last_comment is deprecated. Please use last_description instead. [DEPRECATION] last_comment is deprecated. Please use last_description instead. [DEPRECATION] last_comment is deprecated. Please use last_description instead. Invoke redmine_recurring_tasks:exec (first_time) Invoke environment (first_time) Execute environment Execute redmine_recurring_tasks:exec

None of the tasks, with an added schedule got copied. And no new tasks in redmine though.

olemskoi commented 7 years ago

Did you setup scheduler https://github.com/centosadmin/redmine_recurring_tasks#schedulers ?

You can try to execute by hand:

cd {REDMINE_ROOT}
bundle exec rake redmine_recurring_tasks:exec