Search code examples
ruby-on-railsrubyruby-on-rails-4rubymine

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.


Solution

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