damianesteban
damianesteban

Reputation: 1611

Issue with running tests in Rails after using Ruby Mine

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.

Upvotes: 4

Views: 420

Answers (3)

Daniel B.
Daniel B.

Reputation: 1680

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

Upvotes: 2

Alter_so
Alter_so

Reputation: 21

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

See my answer here for details

Upvotes: 0

Brad Werth
Brad Werth

Reputation: 17647

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

Upvotes: 3

Related Questions