Sha256: 3e370378232f90f265d1620df5e38abaf197b35f6b3eeef6d6624ad6b90c1f7e

Contents?: true

Size: 441 Bytes

Versions: 11

Compression:

Stored size: 441 Bytes

Contents

require 'spec_helper'

describe HelenaAdministration::ApplicationHelper do
  describe '.title' do
    it 'sets content for :title' do
      helper.title 'test'
      expect(view.content_for :title).to eq 'test'
    end
  end

  describe '.truncate_between' do
    it 'truncates a string correctly' do
      output = helper.truncate_between 'abcdefghijklmnopqrstuvwxyz', 20
      expect(output).to eq 'abcdefghi...stuvwxyz'
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
helena_administration-0.3.4 spec/helpers/applicatin_helper_spec.rb
helena_administration-0.3.3 spec/helpers/applicatin_helper_spec.rb
helena_administration-0.3.1 spec/helpers/applicatin_helper_spec.rb
helena_administration-0.3.0 spec/helpers/applicatin_helper_spec.rb
helena_administration-0.2.3 spec/helpers/applicatin_helper_spec.rb
helena_administration-0.2.0 spec/helpers/applicatin_helper_spec.rb
helena_administration-0.1.1 spec/helpers/applicatin_helper_spec.rb
helena_administration-0.1.0 spec/helpers/applicatin_helper_spec.rb
helena_administration-0.0.7 spec/helpers/applicatin_helper_spec.rb
helena_administration-0.0.6 spec/helpers/applicatin_helper_spec.rb
helena_administration-0.0.5 spec/helpers/applicatin_helper_spec.rb