tests/documentation.fy in fancy-0.3.3 vs tests/documentation.fy in fancy-0.4.0
- old
+ new
@@ -1,24 +1,24 @@
FancySpec describe: "Documentations" with: {
- it: "should display the documentation for a method" when: {
+ 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 should == documentation
+ Array new method: "each:" . documentation . docs first is: documentation
}
- it: "should define a documenation string for a class and method" when: {
+ 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 should_not == ""
- ClassWithDoc documentation should == "This class has a documentation! Yay!"
- ClassWithDoc new method: 'foo . documentation docs should == ["bar!"]
+ 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: "should have a documentation string for a method" when: {
- Array new method: "first" . documentation should_not be: 'nil?
+ it: "has a documentation string for a method" when: {
+ Array new method: "first" . documentation is_not be: 'nil?
}
}