Module: Specdown::Config
Instance Attribute Summary collapse
-
#expectations ⇒ Object
Returns the value of attribute expectations.
-
#reporter ⇒ Object
Returns the value of attribute reporter.
-
#root ⇒ Object
Returns the value of attribute root.
-
#tests ⇒ Object
Returns the value of attribute tests.
Instance Method Summary collapse
Instance Attribute Details
#expectations ⇒ Object
Returns the value of attribute expectations.
5 6 7 |
# File 'lib/specdown/config.rb', line 5 def expectations @expectations end |
#reporter ⇒ Object
Returns the value of attribute reporter.
8 9 10 |
# File 'lib/specdown/config.rb', line 8 def reporter @reporter end |
#root ⇒ Object
Returns the value of attribute root.
7 8 9 |
# File 'lib/specdown/config.rb', line 7 def root @root end |
#tests ⇒ Object
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_files ⇒ Object
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 |