Quantcast
Channel: NixMash » Capybara
Browsing all 3 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Handling Rails Date Selects in Capybara and RSpec

There are multiple ways to present dates in a Rails form. The default approach when scaffolding an object is to present the date as 3 dropdowns for date year, month and day.  How to generate a test...

View Article



Image may be NSFW.
Clik here to view.

Triggering Rails Flash Message on Empty Selection List

This post describes how to trigger a Rails Flash Message on the page based on certain criteria. Our criteria is that the user has to select as least one of the stores in the checkbox list. If he clicks...

View Article

Image may be NSFW.
Clik here to view.

Capybara Save and Open Page Thwarted by Test Failures

The Capybara Save_and_Open_Page function, displaying the state of the page as RSpec sees it can be really helpful. So when it’s not working it could cause a productivity hit. Here’s a little tip I...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images