Sha256: 9aa27f736daf8b2b0828376b7e4c0c4e51e3263b0f57e38d530d09edf787b206

Contents?: true

Size: 657 Bytes

Versions: 8

Compression:

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

    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

8 entries across 8 versions & 4 rubygems

Version Path
foca-integrity-0.1.9.2 test/acceptance/not_found_page_test.rb
foca-integrity-0.1.9.3 test/acceptance/not_found_page_test.rb
gforces-integrity-0.1.9.3 test/acceptance/not_found_page_test.rb
gforces-integrity-0.1.9.4 test/acceptance/not_found_page_test.rb
imbriaco-integrity-0.1.9.2.1 test/acceptance/not_found_page_test.rb
imbriaco-integrity-0.1.9.2 test/acceptance/not_found_page_test.rb
integrity-0.1.9.2 test/acceptance/not_found_page_test.rb
integrity-0.1.9.3 test/acceptance/not_found_page_test.rb