Sha256: 10d57c72d30a22133754b2d09b791417fb732e8483a52c41e907d99779d2a294
Contents?: true
Size: 867 Bytes
Versions: 7
Compression:
Stored size: 867 Bytes
Contents
FancySpec describe: "Documentations" with: { it: "displays the documentation for a method" when: { documentation = "Array#each: iterates over its elements, calling a given block with each element." Array new method: "each:" . documentation: documentation Array new method: "each:" . documentation . docs first is: documentation } it: "defines a documenation string for a class and method" when: { class ClassWithDoc { "This class has a documentation! Yay!" def foo { "bar!" nil } } ClassWithDoc documentation to_s is_not: "" ClassWithDoc documentation to_s is: "This class has a documentation! Yay!" ClassWithDoc new method: 'foo . documentation docs is: ["bar!"] } it: "has a documentation string for a method" when: { Array new method: "first" . documentation is_not be: 'nil? } }
Version data entries
7 entries across 7 versions & 1 rubygems