applix 0.4.7 → 0.4.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/applix/version.rb +1 -1
- data/spec/applix_spec.rb +8 -10
- metadata +1 -1
data/lib/applix/version.rb
CHANGED
data/spec/applix_spec.rb
CHANGED
@@ -116,22 +116,20 @@ describe Applix do
|
|
116
116
|
end
|
117
117
|
|
118
118
|
it 'runs epilog callback after handle' do
|
119
|
-
|
119
|
+
last_action = nil
|
120
|
+
Applix.main([:func]) do
|
120
121
|
epilog { |rc, *_|
|
121
|
-
|
122
|
-
|
123
|
-
|
122
|
+
# handle was already executed
|
123
|
+
last_action.should == :handle
|
124
|
+
last_action = :epilog
|
124
125
|
}
|
125
126
|
handle(:func) {
|
126
127
|
# epilog block should not have been executed yet
|
127
|
-
|
128
|
-
|
128
|
+
last_action.should == nil
|
129
|
+
last_action = :handle
|
129
130
|
}
|
130
131
|
end
|
131
|
-
|
132
|
-
$t_post_handle.should_not == nil
|
133
|
-
#(t_handle < $t_post_handle).should == true
|
134
|
-
t_handle.should be < $t_post_handle
|
132
|
+
last_action.should == :epilog
|
135
133
|
end
|
136
134
|
|
137
135
|
it 'supports :any as fallback on command lines without matching task' do
|