Module: Lighthouse::Matchers
- Defined in:
- lib/lighthouse/matchers.rb,
lib/lighthouse/matchers/version.rb
Overview
rubocop:disable Style/Documentation
Defined Under Namespace
Classes: Error
Constant Summary collapse
- VERSION =
'1.2.0'
Class Attribute Summary collapse
- .chrome_flags ⇒ Object
- .lighthouse_cli ⇒ Object
- .minimum_score ⇒ Object
-
.remote_debugging_port ⇒ Object
Returns the value of attribute remote_debugging_port.
- .runner ⇒ Object
Class Attribute Details
.chrome_flags ⇒ Object
27 28 29 30 31 32 |
# File 'lib/lighthouse/matchers.rb', line 27 def chrome_flags return unless @chrome_flags return @chrome_flags unless @chrome_flags.is_a?(Array) @chrome_flags.map { |f| "--#{f}" }.join(' ') end |
.lighthouse_cli ⇒ Object
19 20 21 |
# File 'lib/lighthouse/matchers.rb', line 19 def lighthouse_cli @lighthouse_cli ||= guess_lighthouse_cli end |
.minimum_score ⇒ Object
15 16 17 |
# File 'lib/lighthouse/matchers.rb', line 15 def minimum_score @minimum_score ||= default_minimum_score end |
.remote_debugging_port ⇒ Object
Returns the value of attribute remote_debugging_port.
13 14 15 |
# File 'lib/lighthouse/matchers.rb', line 13 def remote_debugging_port @remote_debugging_port end |
.runner ⇒ Object
23 24 25 |
# File 'lib/lighthouse/matchers.rb', line 23 def runner @runner ||= proc { |cmd| `#{cmd}` } end |