Sha256: 3425c01e0f9f77729786877a680343da5cc50c8d5dce9f36793f68b9e72b45dc
Contents?: true
Size: 534 Bytes
Versions: 2
Compression:
Stored size: 534 Bytes
Contents
# -*- encoding: utf-8 -*- require '<%= project_name %>/endpoints/status' # This allows us to stub out live calls when testing from calling projects module <%= root_module %> module Stub # Setup stubbing for all endpoints def stub! allow_any_instance_of(<%= root_module %>::Endpoints::Status).to receive(:healthy?).and_return( Stub::Data::TEST_STATUS_HEALTHY_RESPONSE ) end # Test data for stubs to return module Data TEST_STATUS_HEALTHY_RESPONSE = 'OK'.freeze end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
saddle-0.2.2 | bin/template/lib/saddle-client/stub.rb |
saddle-0.2.1 | bin/template/lib/saddle-client/stub.rb |