Sha256: 8bc369905d16ef8a0bf97e6c2aefc7bc114b8136abe2116760048c67d970d09b

Contents?: true

Size: 481 Bytes

Versions: 5

Compression:

Stored size: 481 Bytes

Contents

require 'test_helper'

class BootstrapTabHelperTest < ActionView::TestCase
  include BootstrapBaseHelper

  test 'tab' do
    text = tabs do |t|
      t.tab('tab1') do
        'test'
      end
    end

    assert_not_nil text
    assert_not_nil /class="  nav nav-tabs"/i, text
  end

  test 'pill' do
    text = tabs(style: 'pill') do |t|
      t.tab('tab1') do
        'test'
      end
    end

    assert_not_nil text
    assert_not_nil /class="  nav nav-pills"/i, text
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bs-helper-0.1.4 test/unit/helpers/bootstrap_tab_helper_test.rb
bs-helper-0.1.3 test/unit/helpers/bootstrap_tab_helper_test.rb
bs-helper-0.1.2 test/unit/helpers/bootstrap_tab_helper_test.rb
bs-helper-0.1.1 test/unit/helpers/bootstrap_tab_helper_test.rb
bs-helper-0.1.0 test/unit/helpers/bootstrap_tab_helper_test.rb