Skip to content
Permalink
Browse files

Merge pull request #733 from juliendelplanque/732-Change-dependency-t…

…o-Commander2-for-v120

732-Change-dependency-to-Commander2-for-v120
  • Loading branch information...
jecisc committed Aug 14, 2019
2 parents 05839d7 + 99f0230 commit 15945ac2d858bc44c3d7f9a10abe2dccbc555f3a
@@ -91,7 +91,7 @@ BaselineOfSpec2 >> baseline: spec [
BaselineOfSpec2 >> commander2: spec [
spec
baseline: 'Commander2'
with: [ spec repository: 'github://pharo-spec/Commander2:v1.1.0/src' ]
with: [ spec repository: 'github://pharo-spec/Commander2:v1.2.0/src' ]
]

{ #category : #dependencies }
@@ -64,31 +64,30 @@ SpMenuPresenterBuilderTest >> testVisitCommand [
{ #category : #test }
SpMenuPresenterBuilderTest >> testVisitCommandThatCantBeRunWithDisableStrategy [
self assert: menuBuilder menuPresenter defaultGroup menuItems isEmpty.

(CmBlockCommand new
basicName: 'c';
basicDescription: 'desc';
context: [ 41 ];
canBeRunBlock: [ :x | x = 42 ];
canBeExecutedBlock: [ :x | x = 42 ];
block: [ :x | 42 ];
yourself) asSpecCommand acceptVisitor: menuBuilder.

self assert: menuBuilder menuPresenter defaultGroup menuItems size equals: 1.
self
assert: menuBuilder menuPresenter defaultGroup menuItems size
equals: 1
]

{ #category : #test }
SpMenuPresenterBuilderTest >> testVisitCommandThatCantBeRunWithHideStrategy [
self assert: menuBuilder menuPresenter defaultGroup menuItems isEmpty.

(CmBlockCommand new
basicName: 'c';
basicDescription: 'desc';
context: [ 41 ];
canBeRunBlock: [ :x | x = 42 ];
canBeExecutedBlock: [ :x | x = 42 ];
block: [ :x | 42 ];
yourself) asSpecCommand beHiddenWhenCantBeRun acceptVisitor: menuBuilder.

self assert: menuBuilder menuPresenter defaultGroup menuItems isEmpty.
yourself) asSpecCommand beHiddenWhenCantBeRun
acceptVisitor: menuBuilder.
self assert: menuBuilder menuPresenter defaultGroup menuItems isEmpty
]

{ #category : #test }

0 comments on commit 15945ac

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