once?
On Jul 9, 2009, at 10:18 AM, Zach Moazeni wrote:
Hey Dan,
1 approach you could do is define a method within the outer describe
that is called within the inner describe and within each test not
contained by an inner describe.
describe "Some functionality"
ner
http://www.woobius.com
http://danieltenner.com
_______
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
--
Zach Moazeni
http://simplechatter.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
cationController
def foo
p "need to do something with #...@bar}"
end
end
Here's a gist in case the code formatting goes awry http://gist.github.com/142050
.
On Jul 7, 2009, at 8:29 AM, Zach Moazeni wrote:
Hey Ignacy,
I think I'm in the minority on this one, but I te
g variables). What's
worse I can't test assigns hash - it doesn't get proper values
assigned.
Is there a way for RSpec to skip the filters in tests? Or to stop
ApplicationController to derive from SiteController?
Thanks,
Ignacy
--
Zach Moazeni
http://simplechatter.com
k )
do_call
end
Or am I dreaming?
Cheers,
Doug.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
--
Zach Moazeni
http://simplechatter.com
_
Jesse Crockett wrote:
IMO, this is what the RSpec Book needs (at this point in beta),
real-world conclusions based on experience, rather than "take it on
faith that you will 'revel' in the rewards." Thanks, Sarah
--
Zach Moazeni
electors than abstracting up one would make our specs more
readable.
Damn "To Code" list...
-Zach
Begin forwarded message:
From: Zach Moazeni <[EMAIL PROTECTED]>
Date: March 13, 2008 1:46:34 PM GMT-04:00
To: rspec-users
Subject: Re: [rspec-users] Problems with form_for and partials
We've been going down this route:
http://pastie.caboo.se/165265
We use mocha for our mocking and originally we mocked out the form
builder, but the specs felt crufty. We then converted to instantiating
the FormBuilder and passing it to partials that needed it.
For the views that send in th
I wanted to thank all the developers working a great testing
framework. We switched to rspec on our last project, and haven't
looked back.
I know testing views is a touchy subject for some. After having a
surprisingly great time using them on one of our projects, we decided
to adopt it for