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.

Before/After filters

#15

Before and after filters are stubbed for tests and resolutions.

MyResolver.before_test MyResolver.before_resolution MyResolver.after_resolution MyResolver.after_test

MyResolver.before_test :named_test, :other_test do |test| puts 'my test' end

All 4 methods have same signature: the_method(*named,&block)

If a name is given that block should only be run before/after the named test/resolution

These are stubbed in resolver.rb They should be executed and paired up with named tests/resolutions in dependency_resolver.rb

Tests are PENDING in resolver_spec.rb

Reported by coryodaniel · September 22nd, 2008 @ 11:09 AM

State: resolved
Milestone: none
Assigned to: nobody

Activity

  1. coryodaniel
    coryodaniel

    This may not have made sense, the are written and rspec'd now.

    before :test do; BLOCK; end; after :resolution do; BLOCK; end; before :resolution ... etc.

    These still need to be called by the dependency_resolver.

    October 10th, 2008 @ 02:13 PM

  2. coryodaniel
    coryodaniel
    • State changed from new to resolved

    Complete.

    WarningShot.before do;end; WarningShot.after do;end;

    Each Resolver can do:

    MyResolver.before :test do;end; MyResolver.after :test do;end; MyResolver.before :resolution do;end; MyResolver.after :resolution do;end;

    October 17th, 2008 @ 02:51 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.