Class: CypressOnRails::Configuration
- Inherits:
-
Object
- Object
- CypressOnRails::Configuration
- Defined in:
- lib/cypress_on_rails/configuration.rb
Instance Attribute Summary collapse
-
#cypress_folder ⇒ Object
Returns the value of attribute cypress_folder.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#use_middleware ⇒ Object
(also: #use_middleware?)
Returns the value of attribute use_middleware.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #reset ⇒ Object
- #tagged_logged ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 |
# File 'lib/cypress_on_rails/configuration.rb', line 9 def initialize reset end |
Instance Attribute Details
#cypress_folder ⇒ Object
Returns the value of attribute cypress_folder.
5 6 7 |
# File 'lib/cypress_on_rails/configuration.rb', line 5 def cypress_folder @cypress_folder end |
#logger ⇒ Object
Returns the value of attribute logger.
7 8 9 |
# File 'lib/cypress_on_rails/configuration.rb', line 7 def logger @logger end |
#use_middleware ⇒ Object Also known as: use_middleware?
Returns the value of attribute use_middleware.
6 7 8 |
# File 'lib/cypress_on_rails/configuration.rb', line 6 def use_middleware @use_middleware end |
Instance Method Details
#reset ⇒ Object
15 16 17 18 19 |
# File 'lib/cypress_on_rails/configuration.rb', line 15 def reset self.cypress_folder = 'spec/cypress' self.use_middleware = true self.logger = Logger.new(STDOUT) end |
#tagged_logged ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/cypress_on_rails/configuration.rb', line 21 def tagged_logged if logger.respond_to?(:tagged) logger.tagged('CY_DEV') { yield } else yield end end |