Class: RspecRunner::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec_runner/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_timeoutObject

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_directoriesObject

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_optionsObject

Returns the value of attribute listen_options.



5
6
7
# File 'lib/rspec_runner/configuration.rb', line 5

def listen_options
  @listen_options
end

#uri_filepathObject

Returns the value of attribute uri_filepath.



5
6
7
# File 'lib/rspec_runner/configuration.rb', line 5

def uri_filepath
  @uri_filepath
end