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