iterm2_tab_formatter 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +5 -1
- data/lib/iterm2_tab_formatter/version.rb +1 -1
- data/lib/iterm2_tab_formatter.rb +1 -1
- data/spec/iterm2_tab_formatter_spec.rb +2 -2
- metadata +3 -3
data/README.md
CHANGED
@@ -36,7 +36,11 @@ Or install it yourself as:
|
|
36
36
|
|
37
37
|
## Usage
|
38
38
|
|
39
|
-
|
39
|
+
Just add the following line to your spec_helper.rb file:
|
40
|
+
|
41
|
+
require 'iterm2_tab_formatter/auto'
|
42
|
+
|
43
|
+
And then your iTerm2 tabs will participate in testing too!
|
40
44
|
|
41
45
|
## Contributing
|
42
46
|
|
data/lib/iterm2_tab_formatter.rb
CHANGED
@@ -39,7 +39,7 @@ class Iterm2TabFormatter
|
|
39
39
|
pass_ratio = 1 - (1.0 * failure_count / example_count)
|
40
40
|
controller.tab_title = "#{pass_ratio * 100}% passed"
|
41
41
|
|
42
|
-
window_title = Iterm2TabFormatter::TextFormatter.window_title(
|
42
|
+
window_title = Iterm2TabFormatter::TextFormatter.window_title(example_count, failure_count, pending_count)
|
43
43
|
window_title << ' - '
|
44
44
|
window_title << Iterm2TabFormatter::TextFormatter.duration(duration)
|
45
45
|
window_title << ' - Finished at '
|
@@ -58,11 +58,11 @@ describe Iterm2TabFormatter do
|
|
58
58
|
it 'sets the window title through TextFormatter' do
|
59
59
|
Time.should_receive(:now).and_return('time_now')
|
60
60
|
Iterm2TabFormatter::TextFormatter.should_receive(:duration).with(5).and_return('the_duration')
|
61
|
-
Iterm2TabFormatter::TextFormatter.should_receive(:window_title).with(
|
61
|
+
Iterm2TabFormatter::TextFormatter.should_receive(:window_title).with(10, 3, 4).and_return('window_title')
|
62
62
|
Iterm2TabFormatter::TextFormatter.should_receive(:finished_at).with('time_now').and_return('finish_time')
|
63
63
|
controller.should_receive(:window_title=).with('window_title - the_duration - Finished at finish_time')
|
64
64
|
|
65
|
-
formatter.dump_summary(5,
|
65
|
+
formatter.dump_summary(5, 10, 3, 4)
|
66
66
|
end
|
67
67
|
end
|
68
68
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iterm2_tab_formatter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -84,7 +84,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
84
84
|
version: '0'
|
85
85
|
segments:
|
86
86
|
- 0
|
87
|
-
hash:
|
87
|
+
hash: 1312978249904540659
|
88
88
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
89
89
|
none: false
|
90
90
|
requirements:
|
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
93
93
|
version: '0'
|
94
94
|
segments:
|
95
95
|
- 0
|
96
|
-
hash:
|
96
|
+
hash: 1312978249904540659
|
97
97
|
requirements: []
|
98
98
|
rubyforge_project:
|
99
99
|
rubygems_version: 1.8.25
|