Skip to content

Commit

Permalink
Revert "Pick correct serializer when testing"
Browse files Browse the repository at this point in the history
This reverts commit 0f4f126.
  • Loading branch information
mostlyobvious committed Jan 30, 2023
1 parent fcaa701 commit bda28e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 22 deletions.
12 changes: 1 addition & 11 deletions ruby_event_store-active_record/spec/event_repository_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,7 @@ module RubyEventStore
module ActiveRecord
::RSpec.describe EventRepository do
helper = SpecHelper.new

mk_repository = -> {
serializer =
case ENV["DATA_TYPE"]
when /json/
JSON
else
RubyEventStore::Serializers::YAML
end
EventRepository.new(serializer: serializer)
}
mk_repository = -> { EventRepository.new(serializer: RubyEventStore::Serializers::YAML) }

it_behaves_like :event_repository, mk_repository, helper

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,7 @@ module RubyEventStore
module ActiveRecord
::RSpec.describe PgLinearizedEventRepository do
helper = SpecHelper.new

mk_repository = -> {
serializer =
case ENV["DATA_TYPE"]
when /json/
JSON
else
RubyEventStore::Serializers::YAML
end
PgLinearizedEventRepository.new(serializer: serializer)
}
mk_repository = -> { PgLinearizedEventRepository.new(serializer: RubyEventStore::Serializers::YAML) }

it_behaves_like :event_repository, mk_repository, helper

Expand Down

0 comments on commit bda28e0

Please sign in to comment.