Sha256: 67a32e486d7d885ca97131c343ea744fca27faa80853239178390ec10a67e5bf

Contents?: true

Size: 326 Bytes

Versions: 12

Compression:

Stored size: 326 Bytes

Contents

require 'spec_helper'

describe Weeler::ActionView::Helpers::TranslationHelper, :type => :helper do

  let(:output)    {
    helper.translate "not.existing.key"
  }

  it 'dont renders key' do
    expect(output).to eq('<span class="translation_missing" title="translation missing: en.not.existing.key">Key</span>')
  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
weeler-2.1.0 spec/weeler/action_view/helpers/translation_helper_spec.rb
weeler-2.0.1 spec/weeler/action_view/helpers/translation_helper_spec.rb
weeler-2.0.0 spec/weeler/action_view/helpers/translation_helper_spec.rb
weeler-1.6.0 spec/weeler/action_view/helpers/translation_helper_spec.rb
weeler-1.5.4 spec/weeler/action_view/helpers/translation_helper_spec.rb
weeler-1.5.2 spec/weeler/action_view/helpers/translation_helper_spec.rb
weeler-1.5.1 spec/weeler/action_view/helpers/translation_helper_spec.rb
weeler-1.4.0 spec/weeler/action_view/helpers/translation_helper_spec.rb
weeler-1.2.0 spec/weeler/action_view/helpers/translation_helper_spec.rb
weeler-1.1.0 spec/weeler/action_view/helpers/translation_helper_spec.rb
weeler-1.0.4 spec/weeler/action_view/helpers/translation_helper_spec.rb
weeler-1.0.3 spec/weeler/action_view/helpers/translation_helper_spec.rb