Module RubiGen::GeneratorTestHelper
In: lib/rubigen/helpers/generator_test_helper.rb

Methods

Public Instance methods

asserts that the given directory exists

asserts that the given file exists

asserts that the given class source file was generated. It takes a path without the .rb part and an optional super class. the contents of the class source file is passed to a block.

asserts that the given file was generated. the contents of the file is passed to a block.

asserts that the given module source file was generated. It takes a path without the .rb part. the contents of the class source file is passed to a block.

asserts that the given unit test was generated. It takes a name or symbol without the test_ part and an optional super class. the contents of the class source file is passed to a block.

asserts that the given methods are defined in the body. This does assume standard rails code conventions with regards to the source code. The body of each individual method is passed to a block.

Runs the create command (like the command line does)

Silences the logger temporarily and returns the output as a String

[Validate]