Sha256: 0f97f0508f9c544acb59175d42fee7416f05a4ae19bd2945f5e84f10c8711900

Contents?: true

Size: 274 Bytes

Versions: 77

Compression:

Stored size: 274 Bytes

Contents

require 'spec_helper'

RSpec.describe ModelsHelper, type: :helper do

  describe 'admin_set_full_name' do
    it "should call I18n to translate the slug" do
      expect(I18n).to receive(:t).with('ddr.admin_set.foo')
      helper.admin_set_full_name('foo')
    end
  end
end

Version data entries

77 entries across 77 versions & 1 rubygems

Version Path
ddr-models-2.4.8 spec/helpers/models_helper_spec.rb
ddr-models-2.4.7 spec/helpers/models_helper_spec.rb
ddr-models-2.4.6 spec/helpers/models_helper_spec.rb
ddr-models-2.4.5 spec/helpers/models_helper_spec.rb
ddr-models-3.0.0.beta.10 spec/helpers/models_helper_spec.rb
ddr-models-3.0.0.beta.9 spec/helpers/models_helper_spec.rb
ddr-models-3.0.0.beta.8 spec/helpers/models_helper_spec.rb
ddr-models-3.0.0.beta.7 spec/helpers/models_helper_spec.rb
ddr-models-2.4.4 spec/helpers/models_helper_spec.rb
ddr-models-3.0.0.beta.6 spec/helpers/models_helper_spec.rb
ddr-models-2.4.3 spec/helpers/models_helper_spec.rb
ddr-models-2.4.2 spec/helpers/models_helper_spec.rb
ddr-models-3.0.0.beta.4 spec/helpers/models_helper_spec.rb
ddr-models-2.4.1 spec/helpers/models_helper_spec.rb
ddr-models-2.4.0 spec/helpers/models_helper_spec.rb
ddr-models-2.4.0.rc6 spec/helpers/models_helper_spec.rb
ddr-models-3.0.0.beta.3 spec/helpers/models_helper_spec.rb
ddr-models-2.4.0.rc5 spec/helpers/models_helper_spec.rb
ddr-models-2.4.0.rc4 spec/helpers/models_helper_spec.rb
ddr-models-3.0.0.beta.2 spec/helpers/models_helper_spec.rb