Skip to content

Commit

Permalink
moved tests too
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanlm committed Nov 29, 2023
1 parent 2604fe2 commit 8584683
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
Class {
#name : #SpEasyListViewPresenterTest,
#superclass : #SpListViewPresenterTest,
#category : #'Spec2-Tests-Core-Widgets'
#name : 'SpEasyListViewPresenterTest',
#superclass : 'SpListViewPresenterTest',
#category : 'Spec2-ListView-Tests',
#package : 'Spec2-ListView-Tests'
}

{ #category : #accessing }
{ #category : 'accessing' }
SpEasyListViewPresenterTest >> classToTest [

^ SpEasyListViewPresenter
]

{ #category : #initialization }
{ #category : 'initialization' }
SpEasyListViewPresenterTest >> initializeTestedInstance [
]

{ #category : #'tests - header' }
{ #category : 'tests - header' }
SpEasyListViewPresenterTest >> testHideHeaderTitleUnsetsTitle [

presenter
Expand All @@ -24,31 +25,31 @@ SpEasyListViewPresenterTest >> testHideHeaderTitleUnsetsTitle [
self deny: presenter hasHeaderTitle
]

{ #category : #'tests - header' }
{ #category : 'tests - header' }
SpEasyListViewPresenterTest >> testIconFor [
presenter
items: #(#add #back #catalog);
displayIcon: [ :item | Smalltalk ui icons iconNamed: item asSymbol ].
self assert: (presenter iconFor: #add) equals: (Smalltalk ui icons iconNamed: #add)
]

{ #category : #'tests - header' }
{ #category : 'tests - header' }
SpEasyListViewPresenterTest >> testSetHeaderTitleHasTitle [

presenter headerTitle: 'title'.

self assert: presenter hasHeaderTitle
]

{ #category : #'tests - header' }
{ #category : 'tests - header' }
SpEasyListViewPresenterTest >> testSetHeaderTitleSetsTitle [

presenter headerTitle: 'title'.

self assert: presenter headerTitle equals: 'title'
]

{ #category : #tests }
{ #category : 'tests' }
SpEasyListViewPresenterTest >> testWhenIconsChangedDo [
| icon counter |

Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
Class {
#name : #SpListViewPresenterTest,
#superclass : #SpAbstractListPresenterTest,
#category : #'Spec2-Tests-Core-Widgets'
#name : 'SpListViewPresenterTest',
#superclass : 'SpAbstractListPresenterTest',
#category : 'Spec2-ListView-Tests',
#package : 'Spec2-ListView-Tests'
}

{ #category : #accessing }
{ #category : 'accessing' }
SpListViewPresenterTest >> classToTest [

^ SpListViewPresenter
]

{ #category : #initialization }
{ #category : 'initialization' }
SpListViewPresenterTest >> initializeTestedInstance [

presenter
setup: [ :aPresenter | aPresenter newLabel ];
bind: [ :aPresenter :anObject | aPresenter label: anObject asString ]
]

{ #category : #running }
{ #category : 'running' }
SpListViewPresenterTest >> tearDown [

presenter withWindowDo: [ :w | w close ]
Expand Down
1 change: 1 addition & 0 deletions src/Spec2-ListView-Tests/package.st
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Package { #name : 'Spec2-ListView-Tests' }
10 changes: 6 additions & 4 deletions src/Spec2-Tests/SpActionModifierTest.class.st
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
Class {
#name : #SpActionModifierTest,
#superclass : #TestCase,
#category : #'Spec2-Tests-Core'
#name : 'SpActionModifierTest',
#superclass : 'TestCase',
#category : 'Spec2-Tests-Core',
#package : 'Spec2-Tests',
#tag : 'Core'
}

{ #category : #tests }
{ #category : 'tests' }
SpActionModifierTest >> testActionModifier [

self
Expand Down

0 comments on commit 8584683

Please sign in to comment.