Re: [rspec-users] rspec2 not working with shoulda

2010-08-11 Thread Phillip Koebbe
On 2010-08-11 12:29 PM, Craig Demyanovich wrote: On Wed, Aug 11, 2010 at 12:53 PM, Nadal > wrote: I posted a question on shoulda forum. It is under moderation so I don't have a link yet. To the people who do not use shoulda: How would you write a test fo

Re: [rspec-users] rspec2 not working with shoulda

2010-08-11 Thread Craig Demyanovich
On Wed, Aug 11, 2010 at 12:53 PM, Nadal wrote: > I posted a question on shoulda forum. It is under moderation so I > don't have a link yet. > > To the people who do not use shoulda: How would you write a test for > above case. I assume it would require set up a subject, set nil value, > and then

Re: [rspec-users] rspec2 not working with shoulda

2010-08-11 Thread Nadal
I posted a question on shoulda forum. It is under moderation so I don't have a link yet. To the people who do not use shoulda: How would you write a test for above case. I assume it would require set up a subject, set nil value, and then see if there is an error message. I still think that for suc

Re: [rspec-users] rspec2 not working with shoulda

2010-08-11 Thread Craig Demyanovich
On Wed, Aug 11, 2010 at 10:38 AM, David Chelimsky wrote: > > Also - the subject line is backwards - it shoulda been "shoulda not working > with rspec-2" ;) It's been a long time since I tried shoulda, but I used to like to give the advice, "you shoulda used RSpec instead." ;-) Hope you get ever

Re: [rspec-users] rspec2 not working with shoulda

2010-08-11 Thread David Chelimsky
On Aug 11, 2010, at 9:36 AM, David Chelimsky wrote: > > On Aug 11, 2010, at 2:31 AM, Nadal wrote: > >> I am using rails edge. I am using gem "rspec-rails", "= 2.0.0.beta. >> 19" . >> >> I have following code at spec/models/user_spec.rb >> >> require 'spec_helper' >> >> describe User do >> >

Re: [rspec-users] rspec2 not working with shoulda

2010-08-11 Thread David Chelimsky
On Aug 11, 2010, at 2:31 AM, Nadal wrote: > I am using rails edge. I am using gem "rspec-rails", "= 2.0.0.beta. > 19" . > > I have following code at spec/models/user_spec.rb > > require 'spec_helper' > > describe User do > > it { should validate_presence_of(:email) } > > it { should valida

[rspec-users] rspec2 not working with shoulda

2010-08-11 Thread Nadal
I am using rails edge. I am using gem "rspec-rails", "= 2.0.0.beta. 19" . I have following code at spec/models/user_spec.rb require 'spec_helper' describe User do it { should validate_presence_of(:email) } it { should validate_presence_of(:name) } end Here is my gemfile group :developm