Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 401 Bytes

README.md

File metadata and controls

28 lines (21 loc) · 401 Bytes

GCR

A VCR-like test helper for GRPC clients.

Example

# in some test initializer
GCR.cassette_dir = Rails.root.join("test/fixtures/my_grpc_service")
GCR.stub = MyGRPCServer.stub
# in your test code
test "MyController#index works" do
  GCR.with_cassette("some cassette name") do
    MyGRPCServer.do_something
  end
end

Tests

To run tests:

bundle exec rake