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.0.rc3 spec/helpers/models_helper_spec.rb
ddr-models-2.4.0.rc2 spec/helpers/models_helper_spec.rb
ddr-models-2.4.0.rc1 spec/helpers/models_helper_spec.rb
ddr-models-2.3.2 spec/helpers/models_helper_spec.rb
ddr-models-3.0.0.beta.1 spec/helpers/models_helper_spec.rb
ddr-models-2.3.1 spec/helpers/models_helper_spec.rb
ddr-models-3.0.0.alpha.4 spec/helpers/models_helper_spec.rb
ddr-models-3.0.0.alpha.3 spec/helpers/models_helper_spec.rb
ddr-models-2.3.0 spec/helpers/models_helper_spec.rb
ddr-models-3.0.0.alpha.2 spec/helpers/models_helper_spec.rb
ddr-models-3.0.0.alpha.1 spec/helpers/models_helper_spec.rb
ddr-models-2.2.0 spec/helpers/models_helper_spec.rb
ddr-models-2.1.3 spec/helpers/models_helper_spec.rb
ddr-models-2.1.2 spec/helpers/models_helper_spec.rb
ddr-models-2.1.1 spec/helpers/models_helper_spec.rb
ddr-models-2.1.0 spec/helpers/models_helper_spec.rb
ddr-models-2.1.0.rc2 spec/helpers/models_helper_spec.rb
ddr-models-2.1.0.rc1 spec/helpers/models_helper_spec.rb
ddr-models-2.0.1 spec/helpers/models_helper_spec.rb
ddr-models-2.0.0 spec/helpers/models_helper_spec.rb