action_location()
click to toggle source
def action_location
@action.location
end
describe_source_to(visitor, *args)
click to toggle source
def describe_source_to(visitor, *args)
source.reverse.each do |node|
node.describe_to(visitor, *args)
end
self
end
describe_to(visitor, *args)
click to toggle source
def describe_to(visitor, *args)
visitor.test_step(self, *args)
end
execute(*args)
click to toggle source
def execute(*args)
@action.execute(*args)
end
inspect()
click to toggle source
def inspect
"#<#{self.class}: #{location}>"
end
location()
click to toggle source
def location
source.last.location
end
name()
click to toggle source
def name
source.last.name
end
skip(*args)
click to toggle source
def skip(*args)
@action.skip(*args)
end
with_action(location = nil, &block)
click to toggle source
def with_action(location = nil, &block)
self.class.new(source, Test::Action.new(location, &block))
end