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.6.2 spec/helpers/models_helper_spec.rb
ddr-models-2.6.1 spec/helpers/models_helper_spec.rb
ddr-models-2.6.0 spec/helpers/models_helper_spec.rb
ddr-models-2.6.0.rc4 spec/helpers/models_helper_spec.rb
ddr-models-2.6.0.rc3 spec/helpers/models_helper_spec.rb
ddr-models-2.6.0.rc2 spec/helpers/models_helper_spec.rb
ddr-models-2.6.0.rc1 spec/helpers/models_helper_spec.rb
ddr-models-2.5.3 spec/helpers/models_helper_spec.rb
ddr-models-2.5.2 spec/helpers/models_helper_spec.rb
ddr-models-2.5.1 spec/helpers/models_helper_spec.rb
ddr-models-2.5.0 spec/helpers/models_helper_spec.rb
ddr-models-2.5.0.rc1 spec/helpers/models_helper_spec.rb
ddr-models-2.4.16 spec/helpers/models_helper_spec.rb
ddr-models-2.4.15 spec/helpers/models_helper_spec.rb
ddr-models-2.4.14 spec/helpers/models_helper_spec.rb
ddr-models-2.4.13 spec/helpers/models_helper_spec.rb
ddr-models-2.4.12 spec/helpers/models_helper_spec.rb
ddr-models-2.4.11 spec/helpers/models_helper_spec.rb
ddr-models-2.4.10 spec/helpers/models_helper_spec.rb
ddr-models-2.4.9 spec/helpers/models_helper_spec.rb