Sha256: 0e8f0941eeda3616db68dce2da93e440c3246110b7dc7c792f656cbd5674f71e
Contents?: true
Size: 925 Bytes
Versions: 10
Compression:
Stored size: 925 Bytes
Contents
# frozen_string_literal: true require 'rails_helper' include Warden::Test::Helpers RSpec.describe 'Viewing the field guide' do it 'renders correctly' do visit('/importer_documentation/guide') expect(page).to have_content('title') expect(page).to have_content('A name to aid in identifying a work.') expect(page).not_to have_content('-- system field - not directly editable --') end it 'labels system fields and they are not visible' do visit('/importer_documentation/guide') expect(page.first('div.system-field', visible: false).class).to eq Capybara::Node::Element end it 'uses yes/no instead of true/false for multiple values' do visit('/importer_documentation/guide') expect(page).to have_content('Multiple values accepted: yes') end it 'displays the configured delimiter' do visit('/importer_documentation/guide') expect(page).to have_content('|~|') end end
Version data entries
10 entries across 10 versions & 1 rubygems