Hello Friends.

I have a scenario where I am using "link_to_remote" For a ajax request.


Cucmber Script
Then I click on "Active"

Steps
Then /^I click on "([^\"]*)"$/ do |click|
  visit("/controller/some_action/#...@office.id}")
end

controller

def some_action
 if post.xhr?
   something....
 end
end

But When I run the cucumber script I am post.xhr? "FALSE" But the same I am
getting true from browser

Can you please help me out Where I am getting worng?

thanks
abhis

--

You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.


Reply via email to