Module | RubiGen::GeneratorTestHelper |
In: |
lib/rubigen/helpers/generator_test_helper.rb
|
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 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.