diff --git a/ruby_event_store/spec/projection_spec.rb b/ruby_event_store/spec/projection_spec.rb index a589ed5dff..ecd0bb093f 100644 --- a/ruby_event_store/spec/projection_spec.rb +++ b/ruby_event_store/spec/projection_spec.rb @@ -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)