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

Version Path
record_collection-0.10.4 spec/features/disabled_boolean_spec.rb
record_collection-0.10.3 spec/features/disabled_boolean_spec.rb
record_collection-0.10.2 spec/features/disabled_boolean_spec.rb
record_collection-0.10.1 spec/features/disabled_boolean_spec.rb
record_collection-0.10.0 spec/features/disabled_boolean_spec.rb
record_collection-0.9.2 spec/features/disabled_boolean_spec.rb
record_collection-0.9.1 spec/features/disabled_boolean_spec.rb
record_collection-0.9.0 spec/features/disabled_boolean_spec.rb
record_collection-0.8.3 spec/features/disabled_boolean_spec.rb
record_collection-0.8.2 spec/features/disabled_boolean_spec.rb
record_collection-0.8.1 spec/features/disabled_boolean_spec.rb
record_collection-0.7.5 spec/features/disabled_boolean_spec.rb
record_collection-0.7.4 spec/features/disabled_boolean_spec.rb
record_collection-0.7.3 spec/features/disabled_boolean_spec.rb
record_collection-0.7.2 spec/features/disabled_boolean_spec.rb
record_collection-0.7.1 spec/features/disabled_boolean_spec.rb
record_collection-0.7.0 spec/features/disabled_boolean_spec.rb