Sha256: 699db344ecf04446d1aa66777a6fdbf0547284b2334f975581b6ec66f88d5070

Contents?: true

Size: 674 Bytes

Versions: 11

Compression:

Stored size: 674 Bytes

Contents

require File.dirname(__FILE__) + "/../helpers/acceptance"

class NotFoundPageTest < Test::Unit::AcceptanceTestCase
  story <<-EOS
    As an visitor,
    I want to be shown a friendly four oh four
    So that I DON'T HAVE TO THINK.
  EOS

  scenario "chilling on some Integrity instance found via The Holy Hub" do
    project = Project.gen(:public => true)

    visit "/42"
    assert_equal 404, response_code

    click_link "list of projects"
    assert_contain(project.name)

    visit "/42"

    click_link "the projects list"
    assert_contain(project.name)

    visit "/42"

    click_link "back from whence you came"
    assert_contain("Add a new project")
  end
end

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
alphasights-integrity-0.1.10 test/acceptance/not_found_page_test.rb
alphasights-integrity-0.1.9.3 test/acceptance/not_found_page_test.rb
alphasights-integrity-0.1.9.4 test/acceptance/not_found_page_test.rb
alphasights-integrity-0.1.9.5 test/acceptance/not_found_page_test.rb
alphasights-integrity-0.1.9.6 test/acceptance/not_found_page_test.rb
alphasights-integrity-0.1.9.7 test/acceptance/not_found_page_test.rb
alphasights-integrity-0.1.9.8 test/acceptance/not_found_page_test.rb
integrity-integrity-0.1.10 test/acceptance/not_found_page_test.rb
integrity-integrity-0.1.9.3 test/acceptance/not_found_page_test.rb
integrity-0.1.11 test/acceptance/not_found_page_test.rb
integrity-0.1.10 test/acceptance/not_found_page_test.rb