I’m using RubyMine to browse the project files. All the tests work fine and I can run the spec files, debug, set breakpoints on them etc. However when I run non Rspec files such as those from the model, controllers or lib directory I get a `require_dependency’ error:
~/Documents/discourse/lib/post_creator.rb:3:in<top (required)>’: undefined method
require_dependency' for main:Object (NoMethodError)
I’ve searched around and couldn’t find an answer. How can I resolve this?