Class: RspecRunner::Configuration
- Inherits:
-
Object
- Object
- RspecRunner::Configuration
- Defined in:
- lib/rspec_runner/configuration.rb
Instance Attribute Summary collapse
-
#client_timeout ⇒ Object
Returns the value of attribute client_timeout.
-
#listen_directories ⇒ Object
Returns the value of attribute listen_directories.
-
#listen_options ⇒ Object
Returns the value of attribute listen_options.
-
#uri_filepath ⇒ Object
Returns the value of attribute uri_filepath.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 11 12 |
# File 'lib/rspec_runner/configuration.rb', line 7 def initialize @uri_filepath = "#{Dir.pwd}/tmp/rspec_runner" @client_timeout = 60 # seconds @listen_directories = [Dir.pwd] @listen_options = {only: /\.rb$/, ignore: /spec\/.+_spec\.rb$/, wait_for_delay: 1} end |
Instance Attribute Details
#client_timeout ⇒ Object
Returns the value of attribute client_timeout.
5 6 7 |
# File 'lib/rspec_runner/configuration.rb', line 5 def client_timeout @client_timeout end |
#listen_directories ⇒ Object
Returns the value of attribute listen_directories.
5 6 7 |
# File 'lib/rspec_runner/configuration.rb', line 5 def listen_directories @listen_directories end |
#listen_options ⇒ Object
Returns the value of attribute listen_options.
5 6 7 |
# File 'lib/rspec_runner/configuration.rb', line 5 def @listen_options end |
#uri_filepath ⇒ Object
Returns the value of attribute uri_filepath.
5 6 7 |
# File 'lib/rspec_runner/configuration.rb', line 5 def uri_filepath @uri_filepath end |