Skip to content

Commit 764512f

Browse files
Remove anonymous class test from projection_spec
Co-authored-by: Paweł Pacana <pawel.pacana@gmail.com>
1 parent 05e9514 commit 764512f

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

ruby_event_store/spec/projection_spec.rb

-6
Original file line numberDiff line numberDiff line change
@@ -214,12 +214,6 @@ module RubyEventStore
214214
end.to raise_error(ArgumentError, "No handler block given")
215215
end
216216

217-
it "does not support anonymous events" do
218-
expect do
219-
Projection.init.on(Class.new) { |_state, _event| }
220-
end.to raise_error(ArgumentError, "Anonymous class is missing name")
221-
end
222-
223217
specify do
224218
expect(repository).not_to receive(:read)
225219
state = Projection.init.call(event_store.read)

0 commit comments

Comments
 (0)