@@ -26,18 +26,15 @@ def rack_input(json_value)
26
26
env [ 'QUERY_STRING' ] = 'operation=test'
27
27
28
28
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' )
31
30
end
32
31
33
32
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 ) ) )
36
34
env [ 'PATH_INFO' ] = '/test/path'
37
35
38
36
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' )
41
38
end
42
39
43
40
context 'when VCR cassette library directory does not match' do
@@ -63,8 +60,7 @@ def rack_input(json_value)
63
60
env [ 'QUERY_STRING' ] = 'operation=test'
64
61
65
62
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' )
68
64
end
69
65
end
70
66
end
0 commit comments