"stuff" do
rendered.should have_selector('whatever')
end
end
On Jul 8, 1:12 am, itsterry wrote:
> I have a view which calls a helper. Lets' call it "abc"
>
> So in my view, I write
> =abc #(I'm using haml)
>
> When I run the view in my we
I have a view which calls a helper. Lets' call it "abc"
So in my view, I write
=abc #(I'm using haml)
When I run the view in my webserver, all works fine
But when I run my view spec, it tells me
undefined local variable or method 'abc' for #<#Class:0xnumbers>
I've googled this, but can't find
Still can't find an answer on this one by Googling or tweaking
Any thoughts appreciated...
On May 19, 11:09 am, itsterry wrote:
> Hi all
>
> Would very much appreciate any assistance with this. Have Googled it
> but can't find an answer to it.
>
> I'm using
Hi all
Would very much appreciate any assistance with this. Have Googled it
but can't find an answer to it.
I'm using Rails3/Rspec2
I'm spec'ing a view which is a partial called 'shared/_panels'.
When I try to spec it, I get an error that the controller 'shared'
cannot be found (there isn't a c
Just installed Rspec2 and noticed an immediate improvement in speed:
it broke all 899 passing tests on an important project in a matter of
seconds.
Sadly, I don't have the time to work my way through the multitude
upgrade errors (it's not just one error repeated), so I tried to
remove rspec2 and t
; symbolized.
> params["score"]["4"] will get you 10, but params["score"][4] will get you
> nil
>
>
>
> On Wed, Dec 2, 2009 at 8:40 AM, itsterry wrote:
> > Hi all. Apologies if this is an easy one, but I've spent a while
> > Goog
Hi all. Apologies if this is an easy one, but I've spent a while
Googling and trying trial-and-error, and can't find the solution.
I'm trying to spec a controller.
It accepts an HTML array, then processes items matching the id param.
So I'm passing (in meta form)
controller/action/id?thing[thin