search for: should_x_y_z

Displaying 2 results from an estimated 2 matches for "should_x_y_z".

2006 Nov 19
2
underscores, sugar, and more and more bugs
...m - RSpec''s method_missing conflicting with others. I have a proposition that preserves the underscore syntax, makes some examples even more clear, and eliminates this problem once and for all. 1. Eliminate reliance on method missing to handle expectations by adding all of the documented should_x_y_z methods directly to Object. These would all delegate off to Spec::Expectations::Should, ::Not, ::Have, etc, so the design wouldn''t change much and Object itself, though bloated w/ methods, would not be bloated w/ implementation. This would also give us a single expectations module that we...
2006 Nov 19
6
artificial sugar causes cancer
...m - RSpec''s method_missing conflicting with others. I have a proposition that preserves the underscore syntax, makes some examples even more clear, and eliminates this problem once and for all. 1. Eliminate reliance on method missing to handle expectations by adding all of the documented should_x_y_z methods directly to Object. These would all delegate off to Spec::Expectations::Should, ::Not, ::Have, etc, so the design wouldn''t change much and Object itself, though bloated w/ methods, would not be bloated w/ implementation. This would also give us a single expectations module that we...