Sha256: eca92efeaebaa3d9663d2d4998e7fbef2b927e0b66f411a5e37c423d62f65960

Contents?: true

Size: 700 Bytes

Versions: 34

Compression:

Stored size: 700 Bytes

Contents

require 'spec_helper'

describe 'MultiValueWithHelpInput', type: :input do
  subject { input_for file, field, as: :multi_value_with_help, required: true }
  let(:file) { FileSet.new }

  context "when the field has a translation" do
    let(:field) { :language }
    before do
      allow_any_instance_of(MultiValueWithHelpInput).to receive(:raw_label_text).and_return('Language')
      allow_any_instance_of(MultiValueWithHelpInput).to receive(:translate_from_namespace).and_return('default translation')
      allow_any_instance_of(MultiValueWithHelpInput).to receive(:translate_from_namespace).with(:metadata_help).and_return(
        'The language of the file content.'
      )
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
curation_concerns-1.7.8 spec/inputs/multi_value_with_help_input_spec.rb
curation_concerns-1.7.7 spec/inputs/multi_value_with_help_input_spec.rb
curation_concerns-2.0.0 spec/inputs/multi_value_with_help_input_spec.rb
curation_concerns-2.0.0.rc2 spec/inputs/multi_value_with_help_input_spec.rb
curation_concerns-1.7.6 spec/inputs/multi_value_with_help_input_spec.rb
curation_concerns-1.7.5 spec/inputs/multi_value_with_help_input_spec.rb
curation_concerns-1.7.4 spec/inputs/multi_value_with_help_input_spec.rb
curation_concerns-1.7.3 spec/inputs/multi_value_with_help_input_spec.rb
curation_concerns-1.7.2 spec/inputs/multi_value_with_help_input_spec.rb
curation_concerns-2.0.0.rc1 spec/inputs/multi_value_with_help_input_spec.rb
curation_concerns-1.7.1 spec/inputs/multi_value_with_help_input_spec.rb
curation_concerns-1.7.0 spec/inputs/multi_value_with_help_input_spec.rb
curation_concerns-1.7.0.beta1 spec/inputs/multi_value_with_help_input_spec.rb
curation_concerns-1.6.3 spec/inputs/multi_value_with_help_input_spec.rb
curation_concerns-1.6.2 spec/inputs/multi_value_with_help_input_spec.rb
curation_concerns-1.6.1 spec/inputs/multi_value_with_help_input_spec.rb
curation_concerns-1.6.0 spec/inputs/multi_value_with_help_input_spec.rb
curation_concerns-1.5.0 spec/inputs/multi_value_with_help_input_spec.rb
curation_concerns-1.4.0 spec/inputs/multi_value_with_help_input_spec.rb
curation_concerns-1.3.3 spec/inputs/multi_value_with_help_input_spec.rb