@@ -35,7 +35,7 @@ module Cassandra
3535 statement = double ( 'simple statement' )
3636
3737 expect ( Statements ::Simple ) . to receive ( :new ) . once . with ( cql , EMPTY_LIST , EMPTY_LIST , false ) . and_return ( statement )
38- expect ( client ) . to receive ( :query ) . once . with ( statement , session_options ) . and_return ( promise )
38+ expect ( statement ) . to receive ( :accept ) . once . with ( client , session_options ) . and_return ( promise )
3939 expect ( session . execute_async ( cql ) ) . to eq ( promise )
4040 end
4141 end
@@ -48,7 +48,7 @@ module Cassandra
4848 statement = double ( 'simple statement' )
4949
5050 expect ( Statements ::Simple ) . to receive ( :new ) . once . with ( cql , [ 1 ] , [ ] , false ) . and_return ( statement )
51- expect ( client ) . to receive ( :query ) . once . with ( statement , session_options . override ( arguments : [ 1 ] ) ) . and_return ( promise )
51+ expect ( statement ) . to receive ( :accept ) . once . with ( client , session_options . override ( arguments : [ 1 ] ) ) . and_return ( promise )
5252 expect ( session . execute_async ( cql , arguments : [ 1 ] ) ) . to eq ( promise )
5353 end
5454 end
@@ -61,7 +61,7 @@ module Cassandra
6161 statement = double ( 'simple statement' )
6262
6363 expect ( Statements ::Simple ) . to receive ( :new ) . once . with ( cql , [ 1 ] , [ :int ] , false ) . and_return ( statement )
64- expect ( client ) . to receive ( :query ) . once . with ( statement , session_options . override ( arguments : [ 1 ] , type_hints : [ :int ] ) ) . and_return ( promise )
64+ expect ( statement ) . to receive ( :accept ) . once . with ( client , session_options . override ( arguments : [ 1 ] , type_hints : [ :int ] ) ) . and_return ( promise )
6565 expect ( session . execute_async ( cql , arguments : [ 1 ] , type_hints : [ :int ] ) ) . to eq ( promise )
6666 end
6767 end
@@ -75,7 +75,7 @@ module Cassandra
7575 statement = double ( 'simple statement' )
7676
7777 expect ( Statements ::Simple ) . to receive ( :new ) . once . with ( cql , EMPTY_LIST , EMPTY_LIST , false ) . and_return ( statement )
78- expect ( client ) . to receive ( :query ) . once . with ( statement , session_options . override ( options ) ) . and_return ( promise )
78+ expect ( statement ) . to receive ( :accept ) . once . with ( client , session_options . override ( options ) ) . and_return ( promise )
7979 expect ( session . execute_async ( cql , options ) ) . to eq ( promise )
8080 end
8181 end
0 commit comments