Module: ReqresRspec

Extended by:
ReqresRspec
Included in:
ReqresRspec
Defined in:
lib/reqres_rspec/version.rb,
lib/reqres_rspec/collector.rb,
lib/reqres_rspec/uploaders.rb,
lib/reqres_rspec/formatters.rb,
lib/reqres_rspec/configuration.rb,
lib/reqres_rspec/formatters/pdf.rb,
lib/reqres_rspec/formatters/base.rb,
lib/reqres_rspec/formatters/html.rb,
lib/reqres_rspec/formatters/json.rb,
lib/reqres_rspec/uploaders/amazon_s3.rb

Defined Under Namespace

Modules: Formatters, Uploaders Classes: Collector, Configuration

Constant Summary collapse

VERSION =
'0.2.6'

Instance Method Summary collapse

Instance Method Details

#configurationObject



10
11
12
# File 'lib/reqres_rspec/configuration.rb', line 10

def configuration
  @configuration ||= Configuration.new
end

#configure {|configuration| ... } ⇒ Object

Yields:



6
7
8
# File 'lib/reqres_rspec/configuration.rb', line 6

def configure
  yield configuration
end

#loggerObject



14
15
16
17
18
19
20
# File 'lib/reqres_rspec/configuration.rb', line 14

def logger
  @logger ||= if defined?(Rails)
    Rails.logger
  else
    Logger.new(STDOUT)
  end
end

#rootObject



22
23
24
# File 'lib/reqres_rspec/configuration.rb', line 22

def root
  configuration.root
end