Displaying 2 results from an estimated 2 matches for "something_risky".
2007 Sep 05
3
Rspec Caveman questions.
...of their lives to writing this, and ask 2 caveman
questions
My first is "Why lambda in rpsec"? It doesn''t strike me as "reads like
english" or "easily understandable." I understand it''s place in ruby (um,
kind of :), but my thinking is:
lambda { do_something_risky }.should raise_error
would be more understandable (and fun!) written as:
running { something_risky }.should raise_error
My second question is: For those folks who are getting up to speed with ruby
and rails AND digesting rspec along the way, there is a lot of incoming DSL.
As I started with rail...
2007 Sep 05
6
Caveman Questions
...of their lives to writing this, and ask 2 caveman
questions
My first is "Why lambda in rpsec"? It doesn''t strike me as "reads like
english" or "easily understandable." I understand it''s place in ruby (um,
kind of :), but my thinking is:
lambda { do_something_risky }.should raise_error
would be more understandable (and fun!) written as:
running { something_risky }.should raise_error
My second question is: For those folks who are getting up to speed with ruby
and rails AND digesting rspec along the way, there is a lot of incoming DSL.
As I started with rail...