There's a very useful guideline in TDD that says test YOUR code, not
everyone elses. The validation library we're testing here is
ActiveRecord's. It's already tested (we hope!).
Personally, I don't have the courage to assume Rails code is always
working. I know from experience it doesn't
On 9/3/07, Peter Marklund [EMAIL PROTECTED] wrote:
There's a very useful guideline in TDD that says test YOUR code, not
everyone elses. The validation library we're testing here is
ActiveRecord's. It's already tested (we hope!).
Personally, I don't have the courage to assume Rails code is
On Sep 3, 2007, at 3:48 AM, Pat Maddox wrote:
On 9/3/07, Peter Marklund [EMAIL PROTECTED] wrote:
There's a very useful guideline in TDD that says test YOUR code,
not
everyone elses. The validation library we're testing here is
ActiveRecord's. It's already tested (we hope!).
Personally,
I would like to know if the mock framework will be deprecated, since I
have a pair of feature requests, and I don't know where to request
them:
1) Alternative expectations:
mock.should_receive(:save).
and_return(false).
or_receive(:save!).
and_raise(ActiveRecord::RecordNotSaved)
2)
On 9/3/07, Rodrigo Alvarez Fernández [EMAIL PROTECTED] wrote:
On 9/3/07, Peter Marklund [EMAIL PROTECTED] wrote:
2) Chained stubs/expectations
mock.stub!(:valid?).and_return(false)
mock.stub!(:valid?).and_return(true).after_receiving
(:save).and_return(true)
On first look, that
On 9/3/07, Scott Taylor [EMAIL PROTECTED] wrote:
On Sep 3, 2007, at 5:19 AM, Rodrigo Alvarez Fernández wrote:
I would like to know if the mock framework will be deprecated, since I
have a pair of feature requests, and I don't know where to request
them:
1) Alternative expectations:
Hi
Easy one - I just wondered why all spec files for rspec_on_rails end
_spec.rb instead of just .rb? They are all inside the spec
folder so surely the fact they are specs is implicit?
Ashley
___
rspec-users mailing list
rspec-users@rubyforge.org
El 3/9/2007, a las 13:59, Ashley Moran escribió:
Hi
Easy one - I just wondered why all spec files for rspec_on_rails end
_spec.rb instead of just .rb? They are all inside the spec
folder so surely the fact they are specs is implicit?
Ashley
I know it's very application-specific, but one
On Sep 3, 2007, at 7:59 AM, Ashley Moran wrote:
Hi
Easy one - I just wondered why all spec files for rspec_on_rails end
_spec.rb instead of just .rb? They are all inside the spec
folder so surely the fact they are specs is implicit?
Personally, I think the only reason we keep it around
On Sep 3, 2007, at 7:59 AM, Ashley Moran wrote:
Hi
Easy one - I just wondered why all spec files for rspec_on_rails end
_spec.rb instead of just .rb? They are all inside the spec
folder so surely the fact they are specs is implicit?
Personally, I think the only reason we keep it around
Zach,
I believe version 0.7.0 has the global ordering you are looking for:
Version 0.7.0
Added and_yield as an expectation clause.
Inspect on Mocks now yield a more consise description.
Global ordering across all mocks in a container is now allowed.
Added support for Demeter chain mocking.
On 3 Sep 2007, at 13:47, Wincent Colaiuta wrote:
I know it's very application-specific, but one good reason for this
is that it makes finding files in TextMate much easier when you hit
Command-T; you type a few characters and at a glance can distinguish
between spec and implementation files.
On 9/3/07, Peter Marklund [EMAIL PROTECTED] wrote:
There's a very useful guideline in TDD that says test YOUR code, not
everyone elses. The validation library we're testing here is
ActiveRecord's. It's already tested (we hope!).
Personally, I don't have the courage to assume Rails code is
On 9/3/07, Scott Taylor [EMAIL PROTECTED] wrote:
On Sep 3, 2007, at 7:59 AM, Ashley Moran wrote:
Hi
Easy one - I just wondered why all spec files for rspec_on_rails end
_spec.rb instead of just .rb? They are all inside the spec
folder so surely the fact they are specs is implicit?
On 9/3/07, David Chelimsky [EMAIL PROTECTED] wrote:
On 9/3/07, Ashley Moran [EMAIL PROTECTED] wrote:
Hi
Easy one - I just wondered why all spec files for rspec_on_rails end
_spec.rb instead of just .rb? They are all inside the spec
folder so surely the fact they are specs is implicit?
On 9/3/07, David Chelimsky [EMAIL PROTECTED] wrote:
On 9/3/07, Pat Maddox [EMAIL PROTECTED] wrote:
On 9/3/07, David Chelimsky [EMAIL PROTECTED] wrote:
On 9/3/07, Ashley Moran [EMAIL PROTECTED] wrote:
Hi
Easy one - I just wondered why all spec files for rspec_on_rails end
Hi all,
I've talked this over w/ a couple of the other committers and we've
decided that we will NOT be deprecating the mock framework, at least
for the foreseeable future. If/when we do, it will happen with plenty
of notice and a clear, painless (as much as is possible) upgrade path.
To be
Pat, if you update from trunk and re-run the formatter, you'll get Given
... And ... instead of Given ... Given ... in the output.
Great write-up - thanks for taking the time.
Cheers,
Dan
Pat Maddox wrote:
On 9/2/07, David Chelimsky [EMAIL PROTECTED] wrote:
Here's an excellent blog post
Hey Dan,
I noticed it now becomes
Given...And...Given...And...GivenWhenThen...And...Then...And
Desired behavior? Seems a bit strange...I prefer the consistency of
Given...Given...Given though I think Given...And...And would be
more natural.
Pat
On 9/3/07, Dan North [EMAIL PROTECTED]
Cool, I appreciate it. Updated the post to reflect your changes.
Pat
On 9/3/07, Dan North [EMAIL PROTECTED] wrote:
Fixed. Sorry about that.
Pat Maddox wrote:
Hey Dan,
I noticed it now becomes
Given...And...Given...And...GivenWhenThen...And...Then...And
Desired behavior?
BenAskins ([EMAIL PROTECTED])
has invited you as a friend on Quechup...
...the social networking platform sweeping the globe
Go to: http://quechup.com/join.php/aT0wMDAwMDAwMDA5MjY4NjU2JmM9OTc1NDE%3D
to accept Ben's invite
You can use Quechup to meet new people, catch up with old
On 9/3/07, Shane Mingins [EMAIL PROTECTED] wrote:
Hi
We are looking at moving a project over from 1.05 to 1.08 but have a problem
with some of our helper specs
They work fine in 1.05 but error in 1.08 and it is the calls to route helper
methods that seems to be the problem.
I did some
but its not even built with Rails.
On 9/3/07, Ben Askins [EMAIL PROTECTED] wrote:
[image: Quechup.com] http://quechup.com/
Trouble viewing this e-mail - click
23 matches
Mail list logo