Sha256: cae7f6bd187bbeea96f83ebcca8630361f702f845062a90944663f6405c580a2
Contents?: true
Size: 634 Bytes
Versions: 8
Compression:
Stored size: 634 Bytes
Contents
require File.dirname(__FILE__) + "/../helpers/acceptance" class ErrorPageTest < Test::Unit::AcceptanceTestCase story <<-EOS As an user, I want to be shown a friendly page when something go terribly wrong So that I can understand what's going on EOS scenario "an error happen while I am browsing my Integrity install" do stub(Project).only_public_unless(false) { raise ArgumentError } lambda { visit "/" }.should raise_error(Webrat::PageLoadError) response_code.should == 500 assert_have_tag("h1", :content => "Whatever you do") assert_have_tag("strong", :content => "ArgumentError") end end
Version data entries
8 entries across 8 versions & 4 rubygems