Skip to content

Commit a17f34e

Browse files
committed
No more aliases on RubyEventStore consts
1 parent 2d7b7c6 commit a17f34e

File tree

3 files changed

+1
-24
lines changed

3 files changed

+1
-24
lines changed

rails_event_store/lib/rails_event_store/all.rb

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,3 @@
1010
require_relative "version"
1111
require_relative "railtie"
1212
require_relative "browser"
13-
14-
module RailsEventStore
15-
Event = RubyEventStore::Event
16-
InMemoryRepository = RubyEventStore::InMemoryRepository
17-
Subscriptions = RubyEventStore::Subscriptions
18-
Projection = RubyEventStore::Projection
19-
WrongExpectedEventVersion = RubyEventStore::WrongExpectedEventVersion
20-
InvalidExpectedVersion = RubyEventStore::InvalidExpectedVersion
21-
IncorrectStreamData = RubyEventStore::IncorrectStreamData
22-
EventNotFound = RubyEventStore::EventNotFound
23-
SubscriberNotExist = RubyEventStore::SubscriberNotExist
24-
InvalidHandler = RubyEventStore::InvalidHandler
25-
InvalidPageStart = RubyEventStore::InvalidPageStart
26-
InvalidPageStop = RubyEventStore::InvalidPageStop
27-
InvalidPageSize = RubyEventStore::InvalidPageSize
28-
CorrelatedCommands = RubyEventStore::CorrelatedCommands
29-
GLOBAL_STREAM = RubyEventStore::GLOBAL_STREAM
30-
PAGE_SIZE = RubyEventStore::PAGE_SIZE
31-
ImmediateAsyncDispatcher = RubyEventStore::ImmediateAsyncDispatcher
32-
end

rails_event_store/spec/active_job_scheduler_spec.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ module RailsEventStore
2323
it_behaves_like :scheduler, ActiveJobScheduler.new(serializer: RubyEventStore::Serializers::YAML)
2424
it_behaves_like :scheduler, ActiveJobScheduler.new(serializer: RubyEventStore::NULL)
2525

26-
let(:event) do
27-
TimeEnrichment.with(Event.new(event_id: "83c3187f-84f6-4da7-8206-73af5aca7cc8"), timestamp: Time.utc(2019, 9, 30))
28-
end
26+
let(:event) { TimeEnrichment.with(RubyEventStore::Event.new(event_id: "83c3187f-84f6-4da7-8206-73af5aca7cc8"), timestamp: Time.utc(2019, 9, 30)) }
2927
let(:record) { RubyEventStore::Mappers::Default.new.event_to_record(event) }
3028

3129
describe "#verify" do

rails_event_store/spec/client_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ module RailsEventStore
4848

4949
specify "wraps mapper into instrumentation" do
5050
client = Client.new(repository: RubyEventStore::InMemoryRepository.new, mapper: RubyEventStore::Mappers::Default.new)
51-
5251
received_notifications = 0
5352
ActiveSupport::Notifications.subscribe("serialize.mapper.rails_event_store") { received_notifications += 1 }
5453

0 commit comments

Comments
 (0)