Re: [rspec-users] Rspec2: checking a view calls a helper

2011-07-12 Thread itsterry
"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

[rspec-users] Rspec2: checking a view calls a helper

2011-07-07 Thread itsterry
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

Re: [rspec-users] How to spec Rails view partials in shared folders

2011-05-23 Thread itsterry
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

[rspec-users] How to spec Rails view partials in shared folders

2011-05-19 Thread itsterry
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

[rspec-users] Rspec2 - Absolutely brilliant! (at breaking stuff) - Is there a downgrade path ?

2010-11-30 Thread itsterry
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

Re: [rspec-users] HTML array problem

2009-12-04 Thread itsterry
; 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

[rspec-users] HTML array problem

2009-12-02 Thread itsterry
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