Skip to content
Permalink
Browse files

Reclassified all #canBeRun methods in 'testing' protocol.

  • Loading branch information...
juliendelplanque committed Aug 10, 2019
1 parent 19c1ee0 commit 813cda255f8a0cc6df592bbe22d5f26850fbcb31
@@ -4,7 +4,7 @@ Class {
#category : #'Commander2-Tests'
}

{ #category : #hooks }
{ #category : #testing }
CmFakeCommand >> canBeRun [
^ self context = 42
]
@@ -23,7 +23,7 @@ CmBlockCommand >> block: anObject [
block := anObject
]

{ #category : #hooks }
{ #category : #testing }
CmBlockCommand >> canBeRun [
self hasContext "When no context is set, we consider the command to be runnable. So we call super."
ifFalse: [ ^ super canBeRun ].
@@ -58,7 +58,7 @@ CmCommand class >> runWith: anObject [
self new runWith: anObject
]

{ #category : #hooks }
{ #category : #testing }
CmCommand >> canBeRun [
"See my super class comment for this method.
By default I return true.

0 comments on commit 813cda2

Please sign in to comment.
You can’t perform that action at this time.