I have a test like:
it 'has a valid factory' do
The line with `create` is underlined in red. Mousing over, it says: "Found 1 extra argument(s)". The method actually being used is FactoryGirl.create, which accepts any number of arguments.
def create(name, *traits_and_overrides, &block)
Now, it's not reasonable to expect the static analysis to know that I'm using FactoryGirl.create, as it is included at runtime:
So, do I have to disable this inspection? I'd rather not, as it's useful in most other situations, but I can't have every third line of my tests underlined in red.
I am using rubymine 6.3.3