Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make SRecord class namespaced in RES:: #394

Closed
paneq opened this issue Jul 9, 2018 · 0 comments
Closed

make SRecord class namespaced in RES:: #394

paneq opened this issue Jul 9, 2018 · 0 comments
Assignees
Labels

Comments

@paneq
Copy link
Member

paneq commented Jul 9, 2018

It is accidentally unnamespaced

# @private
class SRecord
  def self.new(
    event_id:   SecureRandom.uuid,
    data:       SecureRandom.uuid,
    metadata:   SecureRandom.uuid,
    event_type: SecureRandom.uuid
  )
    RubyEventStore::SerializedRecord.new(
      event_id:   event_id,
      data:       data,
      metadata:   metadata,
      event_type: event_type,
    )
  end
end

RSpec.shared_examples :event_repository do |repository_class|
  # ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants