fixed 'after_render' hook is not work.
- 'before_render' hook is called twice. - add simple cucumber test about some hooks.
This commit is contained in:
parent
486d34a2c1
commit
c444b3f232
4 changed files with 62 additions and 1 deletions
13
middleman-core/features/extension_hooks.feature
Normal file
13
middleman-core/features/extension_hooks.feature
Normal file
|
@ -0,0 +1,13 @@
|
|||
Feature: Extension author could use some hooks
|
||||
|
||||
Scenario: When build
|
||||
Given a fixture app "extension-hooks-app"
|
||||
When I run `middleman build`
|
||||
Then the exit status should be 0
|
||||
And the output should contain "/// after_configuration ///"
|
||||
And the output should contain "/// ready ///"
|
||||
And the output should contain "/// before_build ///"
|
||||
And the output should contain "/// before ///"
|
||||
And the output should contain "/// before_render ///"
|
||||
And the output should contain "/// after_render ///"
|
||||
And the output should contain "/// after_build ///"
|
Loading…
Add table
Add a link
Reference in a new issue