@@ -26,18 +26,15 @@ def rack_input(json_value)
2626 env [ 'QUERY_STRING' ] = 'operation=test'
2727
2828 expect ( response ) . to eq ( [ 200 , { } , [ 'app did /graphql' ] ] )
29- expect ( vcr ) . to have_received ( :use_cassette )
30- . with ( '/graphql/test' , hash_including ( record : :new_episodes ) )
29+ expect ( vcr ) . to have_received ( :use_cassette ) . with ( '/graphql/test' )
3130 end
3231
3332 it 'returns the application response using default request path cassette' do
34- allow ( CypressOnRails ) . to receive ( :configuration ) . and_return ( double ( vcr_record_mode : :once ,
35- logger : Logger . new ( nil ) ) )
33+ allow ( CypressOnRails ) . to receive ( :configuration ) . and_return ( double ( logger : Logger . new ( nil ) ) )
3634 env [ 'PATH_INFO' ] = '/test/path'
3735
3836 expect ( response ) . to eq ( [ 200 , { } , [ 'app did /test/path' ] ] )
39- expect ( vcr ) . to have_received ( :use_cassette )
40- . with ( '/test/path' , hash_including ( record : :once ) )
37+ expect ( vcr ) . to have_received ( :use_cassette ) . with ( '/test/path' )
4138 end
4239
4340 context 'when VCR cassette library directory does not match' do
@@ -63,8 +60,7 @@ def rack_input(json_value)
6360 env [ 'QUERY_STRING' ] = 'operation=test'
6461
6562 expect ( response ) . to eq ( [ 200 , { } , [ 'app did /graphql' ] ] )
66- expect ( vcr ) . to have_received ( :use_cassette )
67- . with ( '/graphql/test' , hash_including ( record : :new_episodes ) )
63+ expect ( vcr ) . to have_received ( :use_cassette ) . with ( '/graphql/test' )
6864 end
6965 end
7066 end
0 commit comments