Sha256: 5893d6da1290b7b575aef4fa99842863965de2734a71266d5c57d8952b15e8de

Contents?: true

Size: 607 Bytes

Versions: 17

Compression:

Stored size: 607 Bytes

Contents

require "test_helper"

module PushType
  describe AdminHelper do

    before { @view_flow = ActionView::OutputFlow.new }

    describe '#title' do
      let(:my_title) { 'My test title' }
      before { title my_title }
      it { content_for?(:title).must_equal true }
      it { content_for(:title).must_equal my_title }
    end

    describe '#ficon' do
      it 'should return an <i> element' do
        ficon(:foo).must_equal '<i class="fi-foo"></i>'
      end
      it 'should return any text' do
        ficon(:foo, 'My icon').must_equal '<i class="fi-foo"></i> My icon'
      end
    end

  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
push_type_admin-0.5.1 test/helpers/push_type/admin_helper_test.rb
push_type_admin-0.5.0 test/helpers/push_type/admin_helper_test.rb
push_type_admin-0.5.0.alpha.5 test/helpers/push_type/admin_helper_test.rb
push_type_admin-0.5.0.alpha.4 test/helpers/push_type/admin_helper_test.rb
push_type_admin-0.5.0.alpha.3 test/helpers/push_type/admin_helper_test.rb
push_type_admin-0.5.0.alpha.2 test/helpers/push_type/admin_helper_test.rb
push_type_admin-0.5.0.alpha.1 test/helpers/push_type/admin_helper_test.rb
push_type_admin-0.4.0 test/helpers/push_type/admin_helper_test.rb
push_type_admin-0.4.0.beta.3 test/helpers/push_type/admin_helper_test.rb
push_type_admin-0.3.3 test/helpers/push_type/admin_helper_test.rb
push_type_admin-0.3.1 test/helpers/push_type/admin_helper_test.rb
push_type_admin-0.2.1 test/helpers/push_type/admin_helper_test.rb
push_type_admin-0.2.0 test/helpers/push_type/admin_helper_test.rb
push_type_admin-0.2.0.beta2 test/helpers/push_type/admin_helper_test.rb
push_type_admin-0.1.1 test/helpers/push_type/admin_helper_test.rb
push_type_admin-0.1.0 test/helpers/push_type/admin_helper_test.rb
push_type_admin-0.1.0.beta3 test/helpers/push_type/admin_helper_test.rb