I've got a form (using the simple_form gem) with an association:
= f.association :options, :label => 'Options:', :as => :check_boxes
That displays options as checkboxes. It looks fine in the browser when I click through. However, if I add a save_and_open_page
to my spec, the Options are blank. There are no checkboxes. If I take the :as => check_boxes
out so that it reverts to a multi-select, the multi-select is empty. I'm also using Twitter Bootstrap.
Unfortunately the bulk of my application that needs testing hinges on being able to select these options.
Here is my original question (which is somewhat irrelevant now that I've determined it's not rendering for Capybara) containing some of the markup: Checking checkboxes with Capybara