Skip to content

Commit

Permalink
Add unit test for a customChange without a class
Browse files Browse the repository at this point in the history
  • Loading branch information
danielthegray committed May 6, 2021
1 parent c95798b commit a030f39
Showing 1 changed file with 10 additions and 0 deletions.
Expand Up @@ -297,6 +297,16 @@ class CustomChangeWrapperTest extends Specification {

}

def "customChange without class fails expectedly"() {
when:
def node = new ParsedNode(null, "customChange")
def change = new CustomChangeWrapper()
change.load(node, resourceSupplier.simpleResourceAccessor)

then:
thrown(ParsedNodeException.class)
}

def "load handles params in a 'params' collection"() {
when:
def node = new ParsedNode(null, "customChange")
Expand Down

0 comments on commit a030f39

Please sign in to comment.