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