Sha256: 2bd67603d0ac5e4e46608f21034f172e95961338d7393c58d0238aba69f48de2
Contents?: true
Size: 604 Bytes
Versions: 17
Compression:
Stored size: 604 Bytes
Contents
require 'spec_helper' RSpec.feature "Optional text_field with normal record", type: :feature do scenario "Selecting all", js: true do employee = Employee.create name: 'E1', admin: true, vegan: false visit collection_edit_employees_path(ids: [employee.id]) find('#collection_section').set 'SEC' # this is an optional toggle = find('.optional-attribute-container.vegan .optional-boolean-toggle') toggle.click find('[name="commit"]').click employee.reload employee.section.should == 'SEC' employee.admin.should be true employee.vegan.should be true end end
Version data entries
17 entries across 17 versions & 1 rubygems