class TestBench::Run::Substitute::Run
Attributes
ran[RW]
Public Instance Methods
call(&block)
click to toggle source
# File lib/test_bench/run/substitute.rb, line 15 def call(&block) self.ran = true block.(self) unless block.nil? end
path(path)
click to toggle source
# File lib/test_bench/run/substitute.rb, line 21 def path(path) paths << path end
Also aliased as: <<
paths()
click to toggle source
# File lib/test_bench/run/substitute.rb, line 11 def paths @paths ||= [] end
ran?(*paths)
click to toggle source
# File lib/test_bench/run/substitute.rb, line 26 def ran?(*paths) return false unless ran paths.all? do |path| self.paths.include?(path) end end