lib/watirspec/implementation.rb in watir-6.13.0 vs lib/watirspec/implementation.rb in watir-6.14.0
- old
+ new
@@ -1,8 +1,7 @@
module WatirSpec
class Implementation
-
attr_writer :name, :guard_proc, :browser_class
attr_accessor :browser_args
def initialize
@guard_proc = nil
@@ -13,15 +12,15 @@
# Backward compatibility < Ruby 2.4
@browser_args = browser_args.map { |arg| arg.is_a?(Symbol) ? arg : arg.dup }
end
def browser_class
- @browser_class || raise("browser_class not set")
+ @browser_class || raise('browser_class not set')
end
def name
- @name || raise("implementation name not set")
+ @name || raise('implementation name not set')
end
def matches_guard?(args)
return @guard_proc.call(args) if @guard_proc
@@ -41,10 +40,10 @@
string = ''
hash.each { |arg| string << "#{arg.inspect}\n" }
return "#{string} default capabilities" unless desired_capabilities
string << "\tcapabilities:\n"
- caps.each { |k, v| string << "\t\t#{k}: #{v}\n"}
+ caps.each { |k, v| string << "\t\t#{k}: #{v}\n" }
hash[:desired_capabilities] = desired_capabilities
string
end
end # Implementation
end # WatirSpec