Skip to content

Commit 3074c69

Browse files
author
Johan Brichau
authored
Merge pull request #1415 from SeasideSt/devwork
Fix errors in Slime rules (due to code that was forgotten when moving from RB to Renraku framework)
2 parents 13bf024 + aa7676b commit 3074c69

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

repository/Seaside-Pharo110-Slime.package/WAChangesStateWhileRenderingRule.class/instance/afterCheck.mappings..st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ afterCheck: aNode mappings: dict
55
aNode isWrite ifFalse: [ ^ false ].
66
(WASlime isWithinCallback: aNode) ifTrue:[ ^ false ].
77

8-
^ true
8+
^ aNode methodNode methodClass instVarNames includes: aNode name
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
hooks
2+
afterCheck: aNode mappings: dict
3+
4+
^ aNode arguments first references: aNode receiver leftmostChainReceiver name

repository/Seaside-Tests-Slime.package/WASlimeTest.class/instance/testUsesWrongRenderer.st

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,12 @@ testUsesWrongRenderer
99
in: class.
1010
self
1111
assertRule: WAUsesWrongRendererRule
12-
matches: { class>>#renderContentOn: }
12+
matches: { class>>#renderContentOn: }.
13+
14+
self
15+
compile: 'renderContentOn: html
16+
html jQuery load html: [ :r | html div ]'
17+
in: class.
18+
self
19+
assertRule: WAUsesWrongRendererRule
20+
matches: { class>>#renderContentOn: }.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
SystemOrganization addCategory: #'Seaside-Tests-Slime'!
1+
self packageOrganizer ensurePackage: #'Seaside-Tests-Slime' withTags: #()!

0 commit comments

Comments
 (0)