turn 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.meta/version +1 -1
- data/History.txt +4 -0
- data/lib/turn.rb +17 -0
- metadata +1 -1
data/.meta/version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.2
|
data/History.txt
CHANGED
data/lib/turn.rb
CHANGED
@@ -49,6 +49,7 @@ module Console
|
|
49
49
|
method, file = name.scan(%r/^([^\(]+)\(([^\)]+)\)/o).flatten!
|
50
50
|
if @t_cur_file != file
|
51
51
|
@t_cur_file = file
|
52
|
+
file = COLORIZE ? ::ANSI::Code.yellow(file) : file
|
52
53
|
turn_out.puts file
|
53
54
|
end
|
54
55
|
turn_out.print " %-69s" % method
|
@@ -77,6 +78,22 @@ module Console
|
|
77
78
|
turn_out.puts msg
|
78
79
|
end
|
79
80
|
|
81
|
+
private
|
82
|
+
def setup_mediator
|
83
|
+
@mediator = create_mediator(@suite)
|
84
|
+
suite_name = @suite.to_s
|
85
|
+
if ( @suite.kind_of?(Module) )
|
86
|
+
suite_name = @suite.name
|
87
|
+
end
|
88
|
+
msg = rails? ? "\n" : "Loaded suite #{suite_name}" #always same in rails so scrap it
|
89
|
+
output(msg)
|
90
|
+
end
|
91
|
+
|
92
|
+
def rails?
|
93
|
+
$:.to_s.include? "rails"
|
94
|
+
end
|
95
|
+
|
96
|
+
|
80
97
|
end
|
81
98
|
end
|
82
99
|
end
|