4

I usually use Vim for Rails development, but I briefly used Ruby Mine for a few days.

Now I'm back to using Vim and when I start up Guard or run rake test it appears my tests are now being run via teamcity, as opposed to my previews setup. I'm getting a ton of errors as well.

Here is an example of the output from rake test:

##teamcity[enteredTheMatrix timestamp = '2014-12-29T11:01:59.027-0500']

##teamcity[testCount count = '0' timestamp = '2014-12-29T11:01:59.028-0500']

##teamcity[testFailed name = 'test_current_user' message = 'Minitest::UnexpectedError: ArgumentError: wrong number of arguments (1 for 0)|n    test/helpers/sessions_helper_test.rb:6:in `block in <class:SessionsHelperTest>|'' details = 'test/helpers/sessions_helper_test.rb:6:in `block in <class:SessionsHelperTest>|'' error = 'true' timestamp = '2014-12-29T11:01:59.150-0500']

Can anyone guide me in how I can fix this? I'm truly puzzled, as I don't see any changes to my Rails configuration files.

0

3 Answers 3

3

Delete the hidden .idea directory in your project's root path. The project files will regenerate correctly the next time the project is opened.

3
  • And how would one fix this issue without getting rid of the RubyMine project files stored in .idea?
    – Torbjörn
    Commented Apr 26, 2015 at 19:52
  • @Torbjoern The project files will regenerate correctly the next time the project is opened.
    – Brad Werth
    Commented Apr 26, 2015 at 21:38
  • Didn't work for me. I deleted .idea and reloaded the project. The .idea folder is back and so is the deluge of teamcity output when I run rails test.
    – Daniel B.
    Commented Jun 23, 2016 at 9:42
2

Run spring stop inside the project directory while the IDE is running.

For me this removed all teamcity output and restored the normal output formatting of rails test.

Per answer in linked question: https://stackoverflow.com/a/30644701/739373

0

The best solution i believe would be to use gem guard-spring

See my answer here for details

1
  • 1
    Hi, welcome to StackOverflow. Please don't post links as answers. If the links go offline, your answer becomes useless. Instead, use the relevant info to build your answer and use the links as reference only. Thanks.
    – Cthulhu
    Commented Jul 25, 2015 at 17:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.