[rspec-users] testing ajax responder actions
kevwil at gmail.com
Thu Feb 8 10:05:51 EST 2007
Sweet! I can't wait to try that tonight. Thanks!
On 2/8/07, Jerry West <jerry.west at ntlworld.com> wrote:
> You can use #xhr instead of #get or #post, thus...
> xhr :post, :create, :id => etc...
> this will send something that the controller is able to recognise as an
> AJAX request.
> #xhr is inherited from the original Rails test framework, but rather taken
> for granted in the Rspec docs (I'll submit a request to improve them).
> Hope this helps,
> Kevin Williams wrote:
> I have an Ajax responder method which uses respond_to to make sure it
> only works with Ajax. I'm having trouble figuring out how to call this
> action successfully. I'm using Rails 1.2.x. Any thoughts?
> rspec-users mailing list
> rspec-users at rubyforge.org
"Any sufficiently advanced technology is indistinguishable from
Magic." - Arthur C. Clarke
More information about the rspec-users