Custom rpc_spec_path Configuration
I tried to utilize a few variations of this code:
Gruf::Rspec.configure do |c|
c.rpc_spec_path = '/spec/contract/'
end
but it doesn't seem to recognize the run_rpc method (or other gruf-rspec test methods) in my test unless I move the test file into spec/rpc.
Is this working correctly or am I missing something if I want to put these tests in a directory other than "rpc".
Could there also/alternatively be an option to specify a test as a gruf-controller test as opposed to putting them all in the same folder and assuming that every test in that folder is a controller test? Perhaps by extending a base class that defines the run_rpc method?
Thank you!
Don't know if this is a bug, but this applies to my setup as well.
@patrickbadleyupstart you could use the following as a workaroud in your RSpec.configure block:
config.define_derived_metadata(file_path: %r{/spec/contract}) do |metadata|
metadata[:type] = :gruf_controller
end