Sha256: 3645be1068dcb332202595abe971fa75efe850b37fc8e0583b2a60f0c0545d8f

Contents?: true

Size: 959 Bytes

Versions: 4

Compression:

Stored size: 959 Bytes

Contents

require File.expand_path("../integration_test_helper", File.dirname(__FILE__))

class SimpleTabsTest < ActionController::IntegrationTest
 
  test "viewing simple tabs" do
    visit '/'
    assert page.has_content?('This tests the most basic usage of tabulous.')
  end
 
  test "clicking galaxies tab" do
    visit '/'
    click_link 'Galaxies'
    assert page.has_content?('Listing galaxies')
    assert page.has_no_content?('Listing stars')
    assert page.has_no_content?('Listing planets')
  end
 
  test "clicking stars tab" do
    visit '/'
    click_link 'Stars'
    assert page.has_content?('Listing stars')
    assert page.has_no_content?('Listing galaxies')
    assert page.has_no_content?('Listing planets')
  end
 
  test "clicking planets tab" do
    visit '/'
    click_link 'Planets'
    assert page.has_content?('Listing planets')
    assert page.has_no_content?('Listing stars')
    assert page.has_no_content?('Listing galaxies')
  end
 
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tabulous-1.3.0 test/applications/rails31/simple_tabs/test/integration/simple_tabs_test.rb
tabulous-1.2.0 test/applications/rails31/simple_tabs/test/integration/simple_tabs_test.rb
tabulous-1.1.0 test/applications/rails31/simple_tabs/test/integration/simple_tabs_test.rb
tabulous-1.0.3 test/applications/rails31/simple_tabs/test/integration/simple_tabs_test.rb