Ruby Intellij IDEA可能不';t检测规范中描述的类的方法
我有一门课:Ruby Intellij IDEA可能不';t检测规范中描述的类的方法,ruby,rspec,intellij-idea,static-methods,rubymine,Ruby,Rspec,Intellij Idea,Static Methods,Rubymine,我有一门课: class A def foo 1 end def self.bar 2 end end 我已经为它制定了规格: describe A do describe '#foo' do expect(subject.foo).to eq 1 end describe '::bar' do expect(described_class.bar).to eq 2 end end 我在ruby插件中使用Intell
class A
def foo
1
end
def self.bar
2
end
end
我已经为它制定了规格:
describe A do
describe '#foo' do
expect(subject.foo).to eq 1
end
describe '::bar' do
expect(described_class.bar).to eq 2
end
end
我在ruby插件中使用IntelliJ IDEA 14,但我认为RubyMine也是如此。
当我键入subject.
时,自动完成功能工作并提供方法foo
。但是对于描述的\u类。
它不起作用。我认为它应该提供方法bar
同样的问题也适用于点击。当我点击subject.foo
中的foo
时,我被重定向到正确的方法。但是,当我在descripted\u class.bar
中单击bar
时,将执行全文搜索,并向我提供所有类中具有该名称的所有方法
我是遗漏了什么还是想法中的一个bug?这是Ruby插件中的一个bug(或者更确切地说,是缺少的功能);它的代码洞察对所描述的类方法没有任何特殊的识别
我无法找到此问题的现有YouTrack问题,因此欢迎访问