Sha256: c7697ef1dbd23599b30a42d20744efc3bf322a690b6182bca4d3bbc0d67d4907

Contents?: true

Size: 416 Bytes

Versions: 18

Compression:

Stored size: 416 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 edit_employee_path(employee.id)

    find('#employee_section').set 'SEC' # this is an optional
    find('[name="commit"]').click

    employee.reload

    employee.section.should == 'SEC'
  end

end

Version data entries

18 entries across 18 versions & 1 rubygems

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