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
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
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
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.
_
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
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