Sha256: 31b2060f51b0ef51f3919dac276fb5f8390fa92f57c99a844f58c3f399cde494

Contents?: true

Size: 755 Bytes

Versions: 11

Compression:

Stored size: 755 Bytes

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)
      assert_response :success
    end
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
errdo-0.12.1 test/integrations/views_integration_test.rb
errdo-0.12.0 test/integrations/views_integration_test.rb
errdo-0.11.6 test/integrations/views_integration_test.rb
errdo-0.11.5 test/integrations/views_integration_test.rb
errdo-0.11.4 test/integrations/views_integration_test.rb
errdo-0.11.3 test/integrations/views_integration_test.rb
errdo-0.11.2 test/integrations/views_integration_test.rb
errdo-0.11.1 test/integrations/views_integration_test.rb
errdo-0.11.0 test/integrations/views_integration_test.rb
errdo-0.10.0 test/integrations/views_integration_test.rb
errdo-0.9.1 test/integrations/views_integration_test.rb