Class: TestProf::RSpecStamp::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/test_prof/rspec_stamp.rb

Overview

RSpecStamp configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration



15
16
17
18
19
# File 'lib/test_prof/rspec_stamp.rb', line 15

def initialize
  @ignore_files = [%r{spec/support}]
  @dry_run = ENV['RSTAMP_DRY_RUN'] == '1'
  self.tags = ENV['RSTAMP']
end

Instance Attribute Details

#dry_runObject

Returns the value of attribute dry_run.



13
14
15
# File 'lib/test_prof/rspec_stamp.rb', line 13

def dry_run
  @dry_run
end

#ignore_filesObject

Returns the value of attribute ignore_files.



13
14
15
# File 'lib/test_prof/rspec_stamp.rb', line 13

def ignore_files
  @ignore_files
end

#tagsObject

Returns the value of attribute tags.



13
14
15
# File 'lib/test_prof/rspec_stamp.rb', line 13

def tags
  @tags
end

Instance Method Details

#dry_run?Boolean



21
22
23
# File 'lib/test_prof/rspec_stamp.rb', line 21

def dry_run?
  @dry_run == true
end