Rspec tests don't run on Ruby 1.9.1 in #681 (but did in #631)
I work in Windows and I started using Rubymine from #631. Rspec tests worked fine with Ruby 1.8.7, but not with Ruby 1.9.1 - Rubymine could not find '/test/unit/autorunner.rb'. The reason for that, I guess, was that some unit testing functionality was moved to Ruby core libraries to a gem. So I installed a pair of testing gems and rspec tests started running fine.
Today I installed #681 and I have the same problem with '/test/unit/autorunner.rb'. Obviously, I did not remove any gems, therefore, I concluded that introduced in #681 gem manager somehow affects running tests.
Is it a bug or I am missing something obvious here?
Thanks.
Please sign in to leave a comment.
Hmm, I uninstalled #681, installed #638 back, but the error is still there.
Where can I finding settings fer Rspec tests? Rubymine keeps looking for '/test/unit/autorunner.rb' in /test/unit, but in Ruby 1.9.1 it is located somewhere deep under rubygems.
Ok, I removed #631 including cache, settings and plugins and installed #681 again. When opening the project Rubymine scanned through the ruby libraries (which it didn't do before) and here we go - rspec test are back in business.
I still think it is kind of weird - in some cases Rubymine keeps looking for autorunner.rb in /test/unit, which is not correct for 1.9.1.
Hi Alexey,
{quote}
The reason for that, I guess, was that some unit testing functionality was moved to Ruby core libraries to a gem. So I installed a pair of testing gems and rspec tests started running fine.
{quote}
It seems you are right. Our Test::Unit tests runner patches Test::Unit classes of ruby 1.8.6 core. Also obviously it's strange that RubyMine requires the Test::Unit file for running RSpec tests. I've created issue in JIRA for this. You can watch changes for issue http://www.jetbrains.net/jira/browse/RUBY-2871
Thanks!
Hello,
When I try to run individual rspec tests usng the context menu (right-click) on the *_spec.rb file and select "Run <class_name>_spec.rb" it gives me the error
File 'test/unit/autorunner.rb' wasn't found in $LOAD_PATH of Ruby SDK with interpreter: '/usr/local/bin/ruby-19'
I have attahced test-spec, test-unit, rspec and rspec-on-rails gems to this project. Couldn't figure out why it's still complaining about autorunner.rb.
Any help would be appreciated.
Thanks,
Krishnan Kannan
Hi guys,
RM's Test Runner will support rspec and test::unit tests for ruby 1.9 in coming RubyMine 1.1 release
Not working for me on Rubymine 1.1.1/Ruby 1.9.1/RSpec 1.2.7.
The problem was resolved see http://www.jetbrains.net/jira/browse/RUBY-4493