Re: [rspec-users] ZenTest, RSpec and Ruby 1.9.1

2009-07-11 Thread Ben Mabey
Robert Rouse wrote: Hello, I thought maybe you guys could help. I'm trying to use RSpec along with ZenTest. However, all I seem to get back when trying to run tests is an exception. Is there a place I can find out what that exception is? I have autospec set up to do the notifications through g

[rspec-users] ZenTest, RSpec and Ruby 1.9.1

2009-07-11 Thread Robert Rouse
Hello, I thought maybe you guys could help. I'm trying to use RSpec along with ZenTest. However, all I seem to get back when trying to run tests is an exception. Is there a place I can find out what that exception is? I have autospec set up to do the notifications through growl. The growl output

Re: [rspec-users] explanation of "describe" vs "context"...

2009-07-11 Thread Zach Dennis
On Sat, Jul 11, 2009 at 3:29 PM, Chris Sund wrote: > Hey everyone, > > This is a noob question. I'm not grasping the difference between > "describe" and "context" in my spec file. As an example, what's the > difference with this... > > describe Game do >     context "starting up" do > it "should se

[rspec-users] explanation of "describe" vs "context"...

2009-07-11 Thread Chris Sund
Hey everyone, This is a noob question. I'm not grasping the difference between "describe" and "context" in my spec file. As an example, what's the difference with this... describe Game do context "starting up" do it "should send a welcome message" do @messenger.should_receive(:puts).

Re: [rspec-users] Validations are making me want to scream. help please

2009-07-11 Thread Yi Wen
There is a validation error, which means you were trying to save the object somewhere. Check both your tests and code, to find out where. On Jul 11, 2009, at 10:42 AM, Michael wrote: Simply testing that my validations are working for a model called Project. MODEL class Project < ActiveRecord

Re: [rspec-users] Validations are making me want to scream. help please

2009-07-11 Thread David Chelimsky
On Sat, Jul 11, 2009 at 10:42 AM, Michael wrote: > Simply testing that my validations are working for a model called > Project. > > MODEL > class Project < ActiveRecord::Base >  validates_presence_of :brief > end > > SPEC > require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') > > de

[rspec-users] Validations are making me want to scream. help please

2009-07-11 Thread Michael
Simply testing that my validations are working for a model called Project. MODEL class Project < ActiveRecord::Base validates_presence_of :brief end SPEC require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe Project do before(:each) do @project = Project.new(:titl