File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed
rails_event_store_active_record Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 22require 'support/test_rails'
33
44module RailsEventStore
5- DummyEvent = Class . new ( RailsEventStore ::Event )
5+ FoobarEvent = Class . new ( RailsEventStore ::Event )
66 UUID_REGEX = /\A \h {8}-\h {4}-\h {4}-\h {4}-\h {12}\z /
77
88 RSpec . describe Client do
99 specify 'no config' do
1010 event_store = Client . new
1111
12- TestRails . new . ( -> { event_store . publish_event ( DummyEvent . new ) } )
12+ TestRails . new . ( -> { event_store . publish_event ( FoobarEvent . new ) } )
1313
1414 expect ( event_store . read_events_forward ( GLOBAL_STREAM ) ) . to_not be_empty
1515 event_store . read_events_forward ( GLOBAL_STREAM ) . map ( &:metadata ) . each do |metadata |
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 44
55module RailsEventStoreActiveRecord
66 describe MigrationGenerator do
7+ around ( :each ) do |example |
8+ current_stdout = $stdout
9+ $stdout = StringIO . new
10+ example . call
11+ $stdout = current_stdout
12+ end
13+
714 specify do
815 FakeFS . with_fresh do
916 FakeFS ::FileSystem . clone ( File . expand_path ( '../../' , __FILE__ ) )
You can’t perform that action at this time.
0 commit comments