Displaying 2 results from an estimated 2 matches for "should_be_adopted_quickly".
2006 Nov 19
6
artificial sugar causes cancer
...s for should_equal):
subject.should_be :empty => passes if subject.empty?
subject.should_be :instance_of, SomeClass => passes if
subject.instance_of? SomeClass
etc...
In my opinion (feel free to disagree), this actually makes these
examples more readable. Consider these two:
@bdd_framework.should_be_adopted_quickly #current
@bdd_framework.should_be :adopted_quickly #proposed
In my view, these read equally well from a language perspective AND
they make it easier for a developer to mentally separate the
expectation (should_be) from the expected value (adopted_quickly?).
This WOULD require changes to existing...
2006 Nov 19
2
underscores, sugar, and more and more bugs
...s for should_equal):
subject.should_be :empty => passes if subject.empty?
subject.should_be :instance_of, SomeClass => passes if
subject.instance_of? SomeClass
etc...
In my opinion (feel free to disagree), this actually makes these
examples more readable. Consider these two:
@bdd_framework.should_be_adopted_quickly #current
@bdd_framework.should_be :adopted_quickly #proposed
In my view, these read equally well from a language perspective AND
they make it easier for a developer to mentally separate the
expectation (should_be) from the expected value (adopted_quickly?).
This WOULD require changes to existing...