Project

gcr

0.03
Repository is archived
No release in over 3 years
Low commit activity in last 3 years
GRPC test helpers
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.10, >= 1.2.5
>= 0
>= 0
~> 3.5, >= 3.5.0

Runtime

 Project Readme

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