Skip to content

Commit 65e8007

Browse files
authored
Merge pull request #102 from RailsEventStore/one-rspec-format
Cleaner output of top-level tests.
2 parents a123438 + 4a54fbb commit 65e8007

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

rails_event_store/spec/request_metadata_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
require 'support/test_rails'
33

44
module 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|

rails_event_store_active_record/.rspec

Lines changed: 0 additions & 2 deletions
This file was deleted.

rails_event_store_active_record/spec/migration_generator_spec.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44

55
module 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__))

0 commit comments

Comments
 (0)