autogen_rspec 0.0.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/autogen_rspec.rb +5 -4
- metadata +1 -1
data/lib/autogen_rspec.rb
CHANGED
@@ -1,7 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
class ApplicationController < ActionController::Base
|
2
|
+
after_filter :log_test
|
3
|
+
|
4
|
+
def log_test
|
4
5
|
begin
|
6
|
+
puts "in log file"
|
5
7
|
f = File.open('tmp/request/test.rb','a')
|
6
8
|
temp = ''
|
7
9
|
|
@@ -39,5 +41,4 @@ module AutogenRspec
|
|
39
41
|
f.write("\n\n#{str}")
|
40
42
|
f.fsync
|
41
43
|
end
|
42
|
-
|
43
44
|
end
|