Skip to content

Commit

Permalink
Kill mutant
Browse files Browse the repository at this point in the history
Rely on the new default instead of explicitly setting it
  • Loading branch information
lukaszreszke authored and mostlyobvious committed Sep 29, 2023
1 parent e7e542b commit 76a8cc2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ruby_event_store/spec/in_memory_repository_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ module RubyEventStore
end

it "publishing with any position to stream with specific position raise an error" do
repository = InMemoryRepository.new(ensure_supported_any_usage: true)
repository = InMemoryRepository.new
repository.append_to_stream([event0 = SRecord.new], Stream.new("stream"), ExpectedVersion.auto)

expect do
Expand All @@ -65,7 +65,7 @@ module RubyEventStore
end

it "publishing with any position to stream with any position does not raise an error" do
repository = InMemoryRepository.new(ensure_supported_any_usage: true)
repository = InMemoryRepository.new
repository.append_to_stream([event0 = SRecord.new], Stream.new("stream"), ExpectedVersion.any)

expect do
Expand All @@ -74,7 +74,7 @@ module RubyEventStore
end

it "publishing with specific position to stream with any position raise an error" do
repository = InMemoryRepository.new(ensure_supported_any_usage: true)
repository = InMemoryRepository.new
repository.append_to_stream([event0 = SRecord.new], Stream.new("stream"), ExpectedVersion.any)

expect do
Expand All @@ -83,7 +83,7 @@ module RubyEventStore
end

it "linking with any position to stream with specific position raise an error" do
repository = InMemoryRepository.new(ensure_supported_any_usage: true)
repository = InMemoryRepository.new
repository.append_to_stream([event0 = SRecord.new], Stream.new("stream"), ExpectedVersion.auto)
repository.append_to_stream([event1 = SRecord.new], Stream.new("other"), ExpectedVersion.auto)

Expand All @@ -93,7 +93,7 @@ module RubyEventStore
end

it "linking with any position to stream with any position does not raise an error" do
repository = InMemoryRepository.new(ensure_supported_any_usage: true)
repository = InMemoryRepository.new
repository.append_to_stream([event0 = SRecord.new], Stream.new("stream"), ExpectedVersion.any)
repository.append_to_stream([event1 = SRecord.new], Stream.new("other"), ExpectedVersion.auto)

Expand All @@ -103,7 +103,7 @@ module RubyEventStore
end

it "linking with specific position to stream with any position raise an error" do
repository = InMemoryRepository.new(ensure_supported_any_usage: true)
repository = InMemoryRepository.new
repository.append_to_stream([event0 = SRecord.new], Stream.new("stream"), ExpectedVersion.any)
repository.append_to_stream([event1 = SRecord.new], Stream.new("other"), ExpectedVersion.auto)

Expand Down

0 comments on commit 76a8cc2

Please sign in to comment.