Skip to content

Conversation

@hallgren
Copy link
Contributor

Makes it possible to append meta_data to events.

def create_event(event_data)
type = event_data.event_type
data = event_data.data
meta_data = event_data.meta_data if event_data.respond_to?(:meta_data)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why meta_data ? I would prefer metadata as this is just a single word

private

def create_event(entry)
return nil unless entry['data']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's part of #21 - maybe let's move this out to #21

describe '#append_to_stream' do

it "should handle one event" do
event = Event.new('event_type', { data: 1 })
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are adding new thing here - so why changing existing tests instead of just adding a new one ?

@hallgren
Copy link
Contributor Author

hallgren commented May 8, 2017

Thanks @mpraglowski for your time and comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants