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