lib/webrat/selenium/application_server_factory.rb
Method app_server_instance
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
Avoid too many return
statements within this method. Open
Open
return Webrat::Selenium::ApplicationServers::External.new