capybara
Running capybara with nginx
Is is possible to run capybara with ngin开发者_如何转开发x and passenger? instead or webrick? Capybara is installed with cucumber in a rails app.It is easy - the only thing you have to do is to switch[详细]
2023-03-28 08:12 分类:问答How can I stub a controller/current_user method in Capybara acceptance test
I have a helper method that calls current_user.eligible_for_re开发者_高级运维ward? and I want to stub that call in a Capybara acceptance spec.In my model I have a placeholder dummy method:[详细]
2023-03-28 06:26 分类:问答Factory Girl / Capybara deleting records from database mid-test?
Working with RSpec & Capybara, I\'m getting an interesting test failure mode which goes away with a few subtle rearrangements of lines in the test case...stuff that shouldn\'t matter.[详细]
2023-03-27 07:15 分类:问答XHR request stubbing for Capybara JavaScript Testing
I\'m trying to write a request_spec that tests the functionality of a page with a form that does a ajax autocomplete lookup and returns valid results to then activate the submit button.[详细]
2023-03-27 01:51 分类:问答Capybara - how to test presence of class attribute for nth element
I have a list like this <ul> <li></li> <li .current></li> <li></li>[详细]
2023-03-26 22:30 分类:问答Passing multiple parameters with Cucumber and Capybara
Hi I need help with Cucumber to Capybara regex match. So I want to have a Cucumber step below: I should see \"10:00, 11:00, 12:00\" under \"div1\"[详细]
2023-03-26 21:42 分类:问答Rspec + Capybara : undefined last_response
I\'m setting up my test environment with Rspec + Capybara, but I get this undefined last_response. I was searching throught the web and SO. I found couple of things about version, use git repo instead[详细]
2023-03-26 06:31 分类:问答authlogic not working with capybara when using the selenium driver
I have all my capybara tests working with my authlogic members area using the default driver, but when i change one test to use selenium driver as it has ajax in it, it gives my theis error :[详细]
2023-03-26 01:32 分类:问答Capybara with a MongoDB/Mongoid Rails app (without SQL database)
Is it possible to use Capybara or Webrat开发者_运维技巧 in a Rails app which does not rely on ActiveRecord (no SQL database) ? My app is using MongoDB and Mongoid instead.Sure. Capybara nor webrat rel[详细]
2023-03-25 21:29 分类:问答Cucumber not finding a route in test mode that I can see in development mode
In development mode, I can point my browser at http://localhost:3000/brands/ and I see a list of all brands, indicating that the route mapping, the index action in the c开发者_运维问答ontroller and th[详细]
2023-03-25 19:52 分类:问答