search for: should_be_whatev

Displaying 1 result from an estimated 1 matches for "should_be_whatev".

Did you mean: should_be_whatever
2006 Sep 06
1
support for arbitrary comparisons
...hould == 3 result.should =~ /regex/ Personally, I prefer should_be and should_match in these cases, as I think they read better. Anyone else have opinions about that? This patch also supports using methods that are not formatted like predicates but act like them: def whatever true end subject.should_be_whatever I really object to this on philosophical grounds. Ruby predicates are a beautiful construct, and I personally feel that if you''re writing methods like that you are violating a ruby aesthetic. If you agree with that, then you have to agree that supporting them in rspec also violates the...