lib/qunited/runner.rb in qunited-0.2.0 vs lib/qunited/runner.rb in qunited-0.2.1

- old
+ new

@@ -41,11 +41,11 @@ raise(UsageError, 'No driver available') unless driver_class driver_class end def get_driver(klass) - if ::QUnited::Driver.constants.reject { |d| d == :Base }.include?(klass) - ::QUnited::Driver.const_get(klass) + if ::QUnited::Driver.constants.reject { |d| d == :Base }.include?(klass.to_s) + ::QUnited::Driver.const_get(klass.to_s) end end # Get the runner that we will be using to run the JavaScript tests. def best_available_driver