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