RSpec support is disabled because it is not activated

So I am getting this message when trying to make a RSpec configuration to make my simple rspec test run.

I am well aware of http://youtrack.jetbrains.net/issue/RUBY-8603?projectKey=RUBY , yet, even when doing that, I still get problems:

C:\Ruby192\bin\ruby.exe -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) "C:\Program Files\JetBrains\RubyMine 3.2.2\rb\testing\runner\specs_in_folder_runner.rb"
Testing started at 3:44 ...
Searching files....
=========================================
1. C:/Users/user/RubymineProjects/tests/game_spec.rb:1


1 files were found.
=========================================
RSpec script : C:\Ruby192\bin/rspec

Spec Options:
[]
=========================================
Running specs...
Command line:
["C:\\Ruby192\\bin\\ruby.exe", "-e", "$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)", "C:\\Ruby192\\bin/rspec", "--require", "teamcity/spec/runner/formatter/teamcity/formatter", "--format", "Spec::Runner::Formatter::TeamcityFormatter", "C:/Users/user/RubymineProjects/tests/game_spec.rb"]
C:\Ruby192\bin\ruby.exe -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) C:\Ruby192\bin/rspec --require teamcity/spec/runner/formatter/teamcity/formatter --format Spec::Runner::Formatter::TeamcityFormatter C:/Users/user/RubymineProjects/tests/game_spec.rb

C:/Users/user/RubymineProjects/tests/game_spec.rb:3:in `<top (required)>': uninitialized constant Object::Game (NameError)
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.6.4/lib/rspec/core/configuration.rb:419:in `load'
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.6.4/lib/rspec/core/configuration.rb:419:in `block in load_spec_files'
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.6.4/lib/rspec/core/configuration.rb:419:in `map'
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.6.4/lib/rspec/core/configuration.rb:419:in `load_spec_files'
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.6.4/lib/rspec/core/command_line.rb:18:in `run'
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.6.4/lib/rspec/core/runner.rb:80:in `run_in_process'
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.6.4/lib/rspec/core/runner.rb:69:in `run'
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.6.4/lib/rspec/core/runner.rb:11:in `block in autorun'
C:/Ruby192/lib/ruby/1.9.1/rake.rb:993:in `block in sh': Command failed with status (1): [C:\Ruby192\bin\ruby.exe -e $stdout.sync=tr...] (RuntimeError)
    from C:/Ruby192/lib/ruby/1.9.1/rake.rb:1008:in `call'
    from C:/Ruby192/lib/ruby/1.9.1/rake.rb:1008:in `sh'
    from C:/Ruby192/lib/ruby/1.9.1/rake.rb:1092:in `sh'
    from C:/Program Files/JetBrains/RubyMine 3.2.2/rb/testing/runner/specs_in_folder_runner.rb:146:in `<top (required)>'
    from -e:1:in `load'
    from -e:1:in `<main>'
Empty test suite.

Process finished with exit code 1

Is there any expectancy of solving the root of the problem? The idea of using an IDE is exactly to have things working with just the click of a button. Having to work try workarounds (that actually seem only to lead to other problems) completely defeats the purpose of them!

There seems to be no more data available about what is the state of the fix, or how long it will take to get a fix for it.

2 comments
Comment actions Permalink

The problem seemed to be related with forgetting the require.

Now this seems to be working.

edit: one more thing, though. I'd like to have each test show up with its name in the left panel, instead of just having a green "Test results:". Is it possible to do that?



Attachment(s):
ruby.png
0
Comment actions Permalink

Yes, you can just click on the funnel icon (Hide passed) on the tests window toolbar and all tests will be shown

0

Please sign in to leave a comment.