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

add convenience method to instantiate a command on a given context #20

Closed
demarey opened this issue Sep 10, 2019 · 4 comments
Closed

add convenience method to instantiate a command on a given context #20

demarey opened this issue Sep 10, 2019 · 4 comments

Comments

@demarey
Copy link

demarey commented Sep 10, 2019

It could be useful in tests to avoid:

(MyCommand new
   context: aTestContext;
  yourself)

It would become:

MyCommand on: aTestContext
@juliendelplanque
Copy link
Member

I prefer

MyCommand context: aTestContext

what do you think?

@Ducasse
Copy link
Contributor

Ducasse commented Oct 8, 2019

Yes!

@Ducasse
Copy link
Contributor

Ducasse commented Oct 8, 2019

Or forContext:

@juliendelplanque
Copy link
Member

Ok, let's go with #forContext:

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

No branches or pull requests

3 participants