[rspec-users] How To Drive Out AJAX Functionality in a Rails View
Lee.Longmore at googlemail.com
Tue May 12 11:33:40 EDT 2009
I have been trying out Cucumber and Culerity (Celerity) but rather
than jump directly from Cucumber to coding the necessary views,
controllers and models required for each scenario, I wanted to drive
out the code using RSpec. So I've started to spec a view required by a
scenario, and this is where I am confused about how I approach the
AJAX aspects of the view in my specs.
> One thing you might want to consider is looking at using a headless
> browser like 'celerity' for testing your ajax code. This is quite a
> bit more involved for initial setup than using RSpec but will give you
> browser. There are quite a few people on this list who are doing this,
> using the 'progressive enhancement' pattern to build a version of
> behaviour when the page loads.
> I'm not doing this myself in earnest, so I'll say no more, but
> hopefully a couple of other people will chime in with some advice.
> Matt Wynnehttp://blog.mattwynne.nethttp://www.songkick.com
> rspec-users mailing list
> rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users
More information about the rspec-users