brynary/webrat

View on GitHub
lib/webrat/selenium/application_server_factory.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method app_server_instance has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      def self.app_server_instance
        case Webrat.configuration.application_framework
        when :sinatra
          require "webrat/selenium/application_servers/sinatra"
          return Webrat::Selenium::ApplicationServers::Sinatra.new
Severity: Minor
Found in lib/webrat/selenium/application_server_factory.rb - About 1 hr to fix

    Avoid too many return statements within this method.
    Open

              return Webrat::Selenium::ApplicationServers::External.new
    Severity: Major
    Found in lib/webrat/selenium/application_server_factory.rb - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status