Starting Baselines.
This commit is contained in:
parent
2f6a9eb37f
commit
dfc2e6b348
@ -0,0 +1,5 @@
|
||||
Class {
|
||||
#name : #BaselineOfLepiterPlugins,
|
||||
#superclass : #BaselineOf,
|
||||
#category : #BaselineOfLepiterPlugins
|
||||
}
|
1
src/BaselineOfLepiterPlugins/package.st
Normal file
1
src/BaselineOfLepiterPlugins/package.st
Normal file
@ -0,0 +1 @@
|
||||
Package { #name : #BaselineOfLepiterPlugins }
|
@ -3,6 +3,6 @@ Extension { #name : #LeDatabase }
|
||||
{ #category : #'*LepiterPlugins' }
|
||||
LeDatabase >> addTestPage [
|
||||
| page |
|
||||
page := LePage new title: 'Test Page ',DateAndTime today asString.
|
||||
page := LePage new title: 'Test Page ',DateAndTime now asString.
|
||||
^ self addPage: page.
|
||||
]
|
||||
|
@ -3,3 +3,20 @@ Class {
|
||||
#superclass : #TestCase,
|
||||
#category : #LepiterPlugins
|
||||
}
|
||||
|
||||
{ #category : #tests }
|
||||
LeSnippetTest >> testSnippetMovementBetweenPages [
|
||||
|
||||
| db origin testSnippet testUUID destination |
|
||||
|
||||
db := LeDatabase new.
|
||||
origin := db addTestPage.
|
||||
destination := db addTestPage.
|
||||
testSnippet := LeSnippet new.
|
||||
origin children addSnippet: testSnippet after: (origin children last).
|
||||
testUUID := testSnippet uid.
|
||||
testSnippet moveFrom: origin title to: destination title.
|
||||
self assert: ( destination includesSnippetUid: testUUID ).
|
||||
self assert: ( origin includesSnippetUid: testUUID ) not.
|
||||
db removeSelf.
|
||||
]
|
||||
|
13
src/LepiterPlugins/ManifestLepiterPlugins.class.st
Normal file
13
src/LepiterPlugins/ManifestLepiterPlugins.class.st
Normal file
@ -0,0 +1,13 @@
|
||||
"
|
||||
I store metadata for this package. These meta data are used by other tools such as the SmalllintManifestChecker and the critics Browser
|
||||
"
|
||||
Class {
|
||||
#name : #ManifestLepiterPlugins,
|
||||
#superclass : #PackageManifest,
|
||||
#category : #'LepiterPlugins-Manifest'
|
||||
}
|
||||
|
||||
{ #category : #'code-critics' }
|
||||
ManifestLepiterPlugins class >> ruleRBCollectionMessagesToExternalObjectRuleV1FalsePositive [
|
||||
^ #(#(#(#RGMethodDefinition #(#LeSnippetTest #testSnippetMovementBetweenPages #false)) #'2021-07-19T09:29:44.803286-05:00') )
|
||||
]
|
Loading…
Reference in New Issue
Block a user