Module: Specdown::Config

Extended by:
Config
Included in:
Config
Defined in:
lib/specdown/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#expectationsObject

Returns the value of attribute expectations.



5
6
7
# File 'lib/specdown/config.rb', line 5

def expectations
  @expectations
end

#reporterObject

Returns the value of attribute reporter.



8
9
10
# File 'lib/specdown/config.rb', line 8

def reporter
  @reporter
end

#rootObject

Returns the value of attribute root.



7
8
9
# File 'lib/specdown/config.rb', line 7

def root
  @root
end

#testsObject

Returns the value of attribute tests.



6
7
8
# File 'lib/specdown/config.rb', line 6

def tests
  @tests
end

Instance Method Details

#reset!Object



14
15
16
17
18
# File 'lib/specdown/config.rb', line 14

def reset!
  @expectations = nil
  @reporter     = nil
  @root         = nil
end

#test_environment_filesObject



46
47
48
49
50
51
52
53
54
55
# File 'lib/specdown/config.rb', line 46

def test_environment_files
  unless @test_environment_files
    @test_environment_files = Dir["#{root}/**/*.rb"]
    unless root[0..0] == "/"
      @test_environment_files.map! {|file| File.join Dir.pwd, file}
    end
  end

  @test_environment_files
end