Sha256: 0f864b9a63d3747e5edd7bf111c8a9557cb193a7af0f6a54e526273b0c32c0a9

Contents?: true

Size: 960 Bytes

Versions: 9

Compression:

Stored size: 960 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

9 entries across 9 versions & 1 rubygems

Version Path
tabulous-1.3.0 test/applications/rails30/simple_tabs/test/integration/simple_tabs_test.rb
tabulous-1.2.0 test/applications/rails30/simple_tabs/test/integration/simple_tabs_test.rb
tabulous-1.1.0 test/applications/rails30/simple_tabs/test/integration/simple_tabs_test.rb
tabulous-1.0.3 test/applications/rails30/simple_tabs/test/integration/simple_tabs_test.rb
tabulous-1.0.2 test/applications/simple_tabs/test/integration/simple_tabs_test.rb
tabulous-1.0.1 test/applications/simple_tabs/test/integration/simple_tabs_test.rb
tabulous-1.0.0 test/applications/simple_tabs/test/integration/simple_tabs_test.rb
tabulous-0.0.2 test/applications/simple_tabs/test/integration/simple_tabs_test.rb
tabulous-0.0.1 test/applications/simple_tabs/test/integration/simple_tabs_test.rb