Generator Test

Contents

Generate Test Output output

Specification

        Given t
        Listener received = test stubs test new stub listener test stubs test generator test
        Gogiven generate test output
        <- received
        Then assert that t listener output is value containing "foo"

Test results:

TEST PASSED
        

Interesting Givens

Generate Test Output Generate Index

Specification

        Given t
        Stub generator received = test stubs test new stub generator
        Gogiven generate test output
        Done = <- received
        Then assert that t done is equal to true
        Then assert that t stub generator index data has length is greater than 0
        Then assert that t stub generator index data 0 ref is any of
        Is value containing "test html"
        Is value containing "test shtml"

Test results:

TEST PASSED
        

Interesting Givens

Generate Test Output Output Index

Specification

        Given t
        Listener received = test stubs test new stub listener test stubs test index file name
        Test stubs test new stub generator
        Gogiven generate test output
        Done = <- received
        Then assert that t done is equal to test stubs test index file name
        Then assert that t listener output is equal to "index"

Test results:

TEST PASSED
        

Interesting Givens

Generate Test Output content Type

Specification

        Given t
        Listener received = test stubs test new stub listener test stubs test generator test
        Gogiven generate test output
        Done = <- received
        Then assert that t done is equal to test stubs test generator test
        Then assert that t listener content type is equal to "text / html"

Test results:

TEST PASSED
        

Interesting Givens

Generate Test Output file Name

Specification

        Given t
        Listener received = test stubs test new stub listener test stubs test generator test
        Gogiven generate test output
        Done = <- received
        Then assert that t done is equal to test stubs test generator test
        Then assert that t listener test file path is value containing "generator test go"

Test results:

TEST PASSED
        

Interesting Givens