diff options
| author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-01-17 10:13:50 +0100 | 
|---|---|---|
| committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-01-17 10:13:50 +0100 | 
| commit | 65c77e80fc100d16c51a634639032fe43f2f2908 (patch) | |
| tree | c16393d2ff90b9b1907d2ae73c8b46ff7264633a /spec/spec_helper.rb | |
| parent | 0f1cc7ddb90c689ed4a7abc7f05cf06d3202079a (diff) | |
| download | zorglub-65c77e80fc100d16c51a634639032fe43f2f2908.zip zorglub-65c77e80fc100d16c51a634639032fe43f2f2908.tar.gz | |
add spec for inherited before_all and after_all hooks
Diffstat (limited to 'spec/spec_helper.rb')
| -rw-r--r-- | spec/spec_helper.rb | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 8c6c2bc..78ce08f 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -117,10 +117,13 @@ class Node3 < Zorglub::Node      layout! 'layout-2'      engine! 'engine-2'      def index -        (self.class.before-self.class.after).should == 1 +        (Node3.before-Node3.after).should == 1      end  end  # +class Node8 < Node3 +end +#  class Node4 < Zorglub::Node      no_layout!      inherited_var :js,'js0','js1' @@ -182,6 +185,7 @@ APP = Zorglub::App.new do      map '/node5', Node5      map '/node6', Node6      map '/node7', Node7 +    map '/node8', Node8  end  class Node2      map APP, '/node2' | 
