Re: [rspec-users] How do I improve the readability of my specs

2010-05-27 Thread David Chelimsky
On May 27, 2010, at 8:39 AM, Nadal wrote: > Thanks David for great explanation. > > Just to be clear to David and others. As some of you might have > noticed I have been asking a lot of questions starting last week. And > that is because I never used rspec before. And now that I am reading > the

Re: [rspec-users] How do I improve the readability of my specs

2010-05-27 Thread Nadal
Thanks David for great explanation. Just to be clear to David and others. As some of you might have noticed I have been asking a lot of questions starting last week. And that is because I never used rspec before. And now that I am reading the book and am trying to convert some of my tests from pla

Re: [rspec-users] How do I improve the readability of my specs

2010-05-26 Thread Matt Wynne
On 27 May 2010, at 04:44, David Chelimsky wrote: > On May 26, 2010, at 9:37 PM, Nadal wrote: > >> Here is my spec. >> >> describe Exception2db do >> context "attributes" do >> subject { Exception2db.create(:exception => $exception_data_xml) } >> >> specify { subject.controller.should == 'e

Re: [rspec-users] How do I improve the readability of my specs

2010-05-26 Thread Phillip Koebbe
On 2010-05-26 10:44 PM, David Chelimsky wrote: ps - there is some irony in the fact that I keep repeating myself on this exact topic on this list. I think I need to write this up in a blog post and point people to that in the future. Now THAT would be DRY. +1 Please do. _

Re: [rspec-users] How do I improve the readability of my specs

2010-05-26 Thread David Chelimsky
On May 26, 2010, at 9:37 PM, Nadal wrote: > Here is my spec. > > describe Exception2db do > context "attributes" do >subject { Exception2db.create(:exception => $exception_data_xml) } > >specify { subject.controller.should == 'exception2db/main' } >specify { subject.error_message.sh

[rspec-users] How do I improve the readability of my specs

2010-05-26 Thread Nadal
Here is my spec. describe Exception2db do context "attributes" do subject { Exception2db.create(:exception => $exception_data_xml) } specify { subject.controller.should == 'exception2db/main' } specify { subject.error_message.should == 'RuntimeError: 46' } specify { subject.user