Sha256: d4b1c763ab416c3b3714295864f307975e55318aff456739afa82f24d15ef48c
Contents?: true
Size: 511 Bytes
Versions: 6
Compression:
Stored size: 511 Bytes
Contents
module RailsEdgeTest::Dsl Controller = Struct.new(:controller_class) do def initialize(*args) super @actions = [] @let_handler = LetHandler.new end def action(name, &block) new_action = Action.new(name, self) new_action.instance_exec(&block) @actions << new_action end def let(title, &block) @let_handler.add_definition(title, &block) end def __actions @actions end def __let_handler @let_handler end end end
Version data entries
6 entries across 6 versions & 1 rubygems