Sha256: 177e95de9cb00fe25aeb79d5fea4ccf506f62f9235282667607207fed653c4d2

Contents?: true

Size: 628 Bytes

Versions: 37

Compression:

Stored size: 628 Bytes

Contents

require 'test_helper'

module PushType
  class AdminHelperTest < ActionView::TestCase

    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

37 entries across 37 versions & 1 rubygems

Version Path
push_type_admin-0.12.1 test/helpers/push_type/admin_helper_test.rb
push_type_admin-0.12.0 test/helpers/push_type/admin_helper_test.rb
push_type_admin-0.12.0.beta.1 test/helpers/push_type/admin_helper_test.rb
push_type_admin-0.11.2 test/helpers/push_type/admin_helper_test.rb
push_type_admin-0.11.1 test/helpers/push_type/admin_helper_test.rb
push_type_admin-0.11.0.beta.2 test/helpers/push_type/admin_helper_test.rb
push_type_admin-0.11.0.beta.1 test/helpers/push_type/admin_helper_test.rb
push_type_admin-0.10.4 test/helpers/push_type/admin_helper_test.rb
push_type_admin-0.10.3 test/helpers/push_type/admin_helper_test.rb
push_type_admin-0.10.2 test/helpers/push_type/admin_helper_test.rb
push_type_admin-0.10.1 test/helpers/push_type/admin_helper_test.rb
push_type_admin-0.10.0 test/helpers/push_type/admin_helper_test.rb
push_type_admin-0.10.0.beta.5 test/helpers/push_type/admin_helper_test.rb
push_type_admin-0.10.0.beta.3 test/helpers/push_type/admin_helper_test.rb
push_type_admin-0.9.5 test/helpers/push_type/admin_helper_test.rb
push_type_admin-0.9.3 test/helpers/push_type/admin_helper_test.rb
push_type_admin-0.9.2 test/helpers/push_type/admin_helper_test.rb
push_type_admin-0.9.1 test/helpers/push_type/admin_helper_test.rb
push_type_admin-0.9.0 test/helpers/push_type/admin_helper_test.rb
push_type_admin-0.9.0.beta.4 test/helpers/push_type/admin_helper_test.rb