Skip to content

Commit

Permalink
Remove anonymous class test from projection_spec
Browse files Browse the repository at this point in the history
Co-authored-by: Paweł Pacana <[email protected]>
  • Loading branch information
lukaszreszke and mostlyobvious committed Feb 10, 2023
1 parent 05e9514 commit 764512f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions ruby_event_store/spec/projection_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,6 @@ module RubyEventStore
end.to raise_error(ArgumentError, "No handler block given")
end

it "does not support anonymous events" do
expect do
Projection.init.on(Class.new) { |_state, _event| }
end.to raise_error(ArgumentError, "Anonymous class is missing name")
end

specify do
expect(repository).not_to receive(:read)
state = Projection.init.call(event_store.read)
Expand Down

0 comments on commit 764512f

Please sign in to comment.