Sha256: 0cb4465c38bacf2f9db22647dc842e5ad914ae496e0198759669f0d70e48fcc3
Contents?: true
Size: 1.06 KB
Versions: 5
Compression:
Stored size: 1.06 KB
Contents
require 'test_helper' class ViewsIntegrationTest < ActionDispatch::IntegrationTest include Errdo::Helpers::ViewsHelper context "views" do setup do get_via_redirect static_generic_error_path @errdo = Errdo::Engine.routes.url_helpers end should "be able to successfully get the index" do get @errdo.root_path assert_response :success end should "be able to successfully get the error's page" do get @errdo.error_path(Errdo::Error.last) assert_response :success end should "be able to get an error's page with a specific instance selected" do get @errdo.error_path(Errdo::Error.last, occurrence_id: Errdo::ErrorOccurrence.last.id) assert_response :success end should "be able to get an error's page with a specific index selected" do get @errdo.error_path(Errdo::Error.last, occurrence_index: 0) assert_response :success end should "strip off asset hash" do get static_view_error_path assert_nil Errdo::Error.last.backtrace[0] =~ /[_]{1,}[0-9]+/ end end end
Version data entries
5 entries across 5 versions & 1 rubygems