Skip to content

Commit 7f5326f

Browse files
committed
Refactor
1 parent e2c7773 commit 7f5326f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ruby_event_store-active_record/spec/event_repository_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,6 @@ module ActiveRecord
315315
skip unless %w[json jsonb].include?(ENV["DATA_TYPE"])
316316

317317
repository = EventRepository.new(serializer: JSON)
318-
repository.rescue_from_double_json_serialization!
319318
repository.append_to_stream(
320319
[SRecord.new(data: JSON.dump({ "simulate" => "double" }))],
321320
Stream.new("stream"),
@@ -326,6 +325,7 @@ module ActiveRecord
326325
Stream.new("stream"),
327326
ExpectedVersion.any,
328327
)
328+
repository.rescue_from_double_json_serialization!
329329

330330
expect(repository.read(specification.backward.limit(1).result).first.data).to eq({ "simulate" => "single" })
331331
expect {

0 commit comments

Comments
 (0)