Starting Baselines.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2021-07-19 18:13:18 -05:00
parent 2f6a9eb37f
commit dfc2e6b348
5 changed files with 37 additions and 1 deletions

View File

@ -0,0 +1,5 @@
Class {
#name : #BaselineOfLepiterPlugins,
#superclass : #BaselineOf,
#category : #BaselineOfLepiterPlugins
}

View File

@ -0,0 +1 @@
Package { #name : #BaselineOfLepiterPlugins }

View File

@ -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.
]

View File

@ -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.
]

View 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') )
]