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

Returns a new instance of Configuration.



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

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.



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

def dry_run
  @dry_run
end

#ignore_filesObject

Returns the value of attribute ignore_files.



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

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

Returns:

  • (Boolean)


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

def dry_run?
  @dry_run == true
end