Integration with rspec gem (not rspec-rails) shows "cannot find 'it'" Follow
Hello, I am probably one of the few people that do not use RubyMine with Rails. However, I do use RSpec, and noticed that when I attach the 'rspec' gem to RubyMine, all of the unresolved Ruby references go away except for the 'it' definition. Is there a way to get RubyMine to recognize this?
Please sign in to leave a comment.
1. Which RubyMine version, which rspec?
2. Is you spec file end with _spec.rb suffix
3. Does your spec file requires "spec" ? Could you provide a screenshot.
4. Also does autocompletion contains "describe" or "it" methods?
Hi Roman, here are the answers:
1. Both RubyMine 1.1.1 and RubyMine 2.0 beta, RSpec 1.3.5
2. It ends with "_specs.rb"
3. On line 1 in the Ruby file is: require 'spec'
4. 'describe' will autocomplete but 'it' and 'before' do not; they are denoted with an underline and when I mouse over them a popup window appears that says "Cannot find 'before'" or "Cannot find 'it'"
Mike
Has there been any progress on this?
Mike,
Please attach screenshot of your file. Maybe I will noticed something else on it.
Also the latest version of rspec in 1.2.9 (see http://github.com/dchelimsky/rspec/blob/master/History.rdoc) but you use 1.3.5, I don't understand...