Re: [rspec-users] rspec 2.7.0.rc1 is released!

2011-10-10 Thread Ash Moran
On 9 Oct 2011, at 21:23, David Chelimsky wrote: > * Allow classes/modules to be used as shared example group identifiers >(Arthur Gunn) This sounds awesome. Are there any full examples? I could only see unit tests in the code. Ash -- http://www.patchspace.co.uk/ http://www.linkedin.com/

Re: [rspec-users] rspec 2.7.0.rc1 is released!

2011-10-10 Thread David Chelimsky
On Oct 10, 2011, at 4:16 AM, Ash Moran wrote: > > On 9 Oct 2011, at 21:23, David Chelimsky wrote: > >> * Allow classes/modules to be used as shared example group identifiers >> (Arthur Gunn) > > This sounds awesome. Are there any full examples? I could only see unit tests > in the code. Nop

[rspec-users] understanding rspec predicates

2011-10-10 Thread Patrick J. Collins
I know I can do: blah.should be_empty or blah.should have_key(:to_my_house) ... But, is there a way to do: str = "lmaonade omg rotfcopter!" str.should start_with("lmao") Or is it just best to do: str.starts_with?("lmao").should be_true ? Patrick J. Collins http://collinatorstudios.com

Re: [rspec-users] understanding rspec predicates

2011-10-10 Thread David Chelimsky
On Oct 10, 2011, at 8:17 PM, Patrick J. Collins wrote: > I know I can do: > > blah.should be_empty > > or > > blah.should have_key(:to_my_house) > > ... > > But, is there a way to do: > > str = "lmaonade omg rotfcopter!" > > str.should start_with("lmao") > > Or is it just best to do: > >