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 RubyEventStore methods return self instead of ok #413

Merged
merged 3 commits into from
Aug 1, 2018

Conversation

swistak35
Copy link
Contributor

Issue: #392

specify 'publish returns :ok when success' do
expect(client.publish(TestEvent.new)).to eq(:ok)
specify 'publish returns self when success' do
expect(client.publish(TestEvent.new)).to eq(client)
Copy link
Member

Choose a reason for hiding this comment

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

I usually tested it as client.publish().publish() but that's also fine :)

Copy link
Member

Choose a reason for hiding this comment

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

hmmm that could be good places to start going with mutant annotations:

specify 'publish returns self when success', mutant: "RubyEventStore::Client#publish" do

which should help with making mutation testing run faster. Do you think you could try that here and in a few other places where you know which method you test.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@paneq I'm not a fan (yet) of this mutant: keyword, so I will pass on this here. Maybe another good first issue for that?

@mostlyobvious mostlyobvious merged commit 701f6f5 into master Aug 1, 2018
@mostlyobvious mostlyobvious deleted the rl/self-over-ok branch August 1, 2018 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants