Skip to content

Custom rpc_spec_path Configuration #18

@patrickbadleyupstart

Description

@patrickbadleyupstart

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions