RubyMine Unit tests - Test Framework quit unexpectedly

后端 未结 8 794
感动是毒
感动是毒 2020-12-30 01:00

When I try to run the tests from within RubyMine I have an issue. But what is strange is that it work fine when I run the tests from the command line.

\"Test

8条回答
  •  不思量自难忘°
    2020-12-30 01:50

    You should be sure that your test suite is running with RAILS_ENV=test

    For RubyMine you can set this up in Run > Edit Configurations.. > Choose test suite you want to run (i.e. spec: project_name) > Environment variables and there add variable mentioned above.

提交回复
热议问题