Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Action Mapping

#84

Look at the following mapping module Login

def button_pressed(e)

attempt_login

end

def attempt_login

#behavior

end

end

in my players modules. I want to be able to map it using a simple dsl, like so

module Login button_pressed :attempt_login, :pass_event => false

def attempt_login

#behavior

end

end

So I can call methods like

attempt_login in my specs and not be passing nil around as the event (most of the time I don't use the event)

It makes my specs a lot cleaner.

Reported by paul (at 8thlight) · December 8th, 2008 @ 01:04 PM

State: new
Milestone: Limelight 0.6
Assigned to: nobody

Activity

  1. Micah Martin
    Micah Martin
    • Tag set to feature_request
    • Milestone changed from Limelight 0.2 to Limelight 0.4

    December 9th, 2008 @ 01:47 PM

  2. Micah Martin
    Micah Martin
    • Milestone changed from Limelight 0.4 to Limelight 0.5

    August 17th, 2009 @ 05:17 PM

  3. Micah Martin
    Micah Martin
    • Milestone changed from Limelight 0.5 to Limelight 0.6

    October 29th, 2009 @ 08:50 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.