@@ -24,18 +24,18 @@ module DataSystem
2424 end
2525
2626 it "creates streaming processor by default" do
27- allow ( LaunchDarkly ::StreamProcessor ) . to receive ( :new ) . and_call_original
27+ allow ( LaunchDarkly ::Impl :: DataSource :: StreamProcessor ) . to receive ( :new ) . and_call_original
2828 subject . start
29- expect ( LaunchDarkly ::StreamProcessor ) . to have_received ( :new ) . with ( sdk_key , config , nil )
29+ expect ( LaunchDarkly ::Impl :: DataSource :: StreamProcessor ) . to have_received ( :new ) . with ( sdk_key , config , nil )
3030 end
3131
3232 context "with polling mode" do
3333 let ( :config ) { LaunchDarkly ::Config . new ( stream : false ) }
3434
3535 it "creates polling processor" do
36- allow ( LaunchDarkly ::PollingProcessor ) . to receive ( :new ) . and_call_original
36+ allow ( LaunchDarkly ::Impl :: DataSource :: PollingProcessor ) . to receive ( :new ) . and_call_original
3737 subject . start
38- expect ( LaunchDarkly ::PollingProcessor ) . to have_received ( :new )
38+ expect ( LaunchDarkly ::Impl :: DataSource :: PollingProcessor ) . to have_received ( :new )
3939 end
4040 end
4141
@@ -249,7 +249,7 @@ module DataSystem
249249 diagnostic_accumulator = double ( "DiagnosticAccumulator" )
250250 subject . set_diagnostic_accumulator ( diagnostic_accumulator )
251251
252- expect ( LaunchDarkly ::StreamProcessor ) . to receive ( :new ) . with ( sdk_key , config , diagnostic_accumulator ) . and_call_original
252+ expect ( LaunchDarkly ::Impl :: DataSource :: StreamProcessor ) . to receive ( :new ) . with ( sdk_key , config , diagnostic_accumulator ) . and_call_original
253253 subject . start
254254 end
255255
@@ -261,7 +261,7 @@ module DataSystem
261261 subject . set_diagnostic_accumulator ( diagnostic_accumulator )
262262
263263 # PollingProcessor doesn't accept diagnostic_accumulator
264- expect ( LaunchDarkly ::PollingProcessor ) . to receive ( :new ) . with ( config , anything ) . and_call_original
264+ expect ( LaunchDarkly ::Impl :: DataSource :: PollingProcessor ) . to receive ( :new ) . with ( config , anything ) . and_call_original
265265 subject . start
266266 end
267267 end
0 commit comments