Sha256: d32be5a63a0e12e19a3f3c40279000f046db8834f9c59ce4e2a8cec3ce69c4f6
Contents?: true
Size: 521 Bytes
Versions: 17
Compression:
Stored size: 521 Bytes
Contents
require 'spec_helper' RSpec.feature "Disabled booleans", type: :feature do scenario "Selecting all", js: true do project = Project.create name: 'P1', finished: true visit collection_edit_projects_path(ids: [project.id]) toggle = find('.optional-attribute-container.finished .optional-boolean-toggle') toggle['class'].should include 'active' toggle.click find('[name="commit"]').click project.reload # Should not be changed by the click project.finished.should be true end end
Version data entries
17 entries across 17 versions & 1 rubygems