Sha256: 740fcfd6f8907e32564ff08f5b9ee7134fa4aa51606dd71c24ce134760d0bd95

Contents?: true

Size: 442 Bytes

Versions: 5

Compression:

Stored size: 442 Bytes

Contents

require 'rails_helper'

RSpec.describe Admin::TbRedirectsHelper, type: :helper do
  describe '#created_by_for_tb_redirect' do
    it 'should return an info label' do
      result = helper.created_by_for_tb_redirect('user')
      expect(result).to include('label-info')
    end
    it 'should return a default label' do
      result = helper.created_by_for_tb_redirect('cms')
      expect(result).to include('label-default')
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tb_redirects-1.0.3 spec/helpers/admin/tb_redirects_helper_spec.rb
tb_redirects-1.0.2 spec/helpers/admin/tb_redirects_helper_spec.rb
tb_redirects-1.0.1 spec/helpers/admin/tb_redirects_helper_spec.rb
tb_redirects-1.0 spec/helpers/admin/tb_redirects_helper_spec.rb
tb_redirects-1.0.beta1 spec/helpers/admin/tb_redirects_helper_spec.rb