teabag 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +8 -1
- data/app/assets/javascripts/teabag-jasmine.js +24 -5
- data/app/assets/javascripts/teabag-mocha.js +24 -5
- data/app/assets/javascripts/teabag-qunit.js +24 -5
- data/app/assets/javascripts/teabag/base/reporters/html.coffee +22 -7
- data/app/assets/javascripts/teabag/base/runner.coffee +1 -1
- data/app/assets/javascripts/teabag/base/teabag.coffee +9 -9
- data/app/assets/stylesheets/teabag.css +30 -9
- data/app/views/teabag/spec/index.html.erb +8 -4
- data/lib/generators/teabag/install/templates/initializer.rb +5 -4
- data/lib/teabag/formatters/dot_formatter.rb +43 -32
- data/lib/teabag/suite.rb +5 -0
- data/lib/teabag/version.rb +1 -1
- data/spec/dummy/log/development.log +24713 -0
- data/spec/dummy/log/test.log +70 -0
- data/spec/dummy/tmp/cache/assets/C59/250/sprockets%2Fa80d3fe493d2476e58c4323996064512 +0 -0
- data/spec/dummy/tmp/cache/assets/C72/150/sprockets%2F4194031b4b51b6422c14ac697e3455e5 +0 -0
- data/spec/dummy/tmp/cache/assets/C75/D50/sprockets%2F5302968a40e08d2c011aa38666d273f6 +0 -0
- data/spec/dummy/tmp/cache/assets/C89/700/sprockets%2F259935a7704fef0069303ea63fa89408 +0 -0
- data/spec/dummy/tmp/cache/assets/C8A/460/sprockets%2F77bffd9959420103906722b404ae8d59 +0 -0
- data/spec/dummy/tmp/cache/assets/C91/FA0/sprockets%2F2eb81283f5789ae91a69344552db3856 +0 -0
- data/spec/dummy/tmp/cache/assets/CA6/DF0/sprockets%2F7da83747ce56e49393b6b8726587f846 +0 -0
- data/spec/dummy/tmp/cache/assets/CA9/C40/sprockets%2F932b7e2cd1e067289ab51190800814df +0 -0
- data/spec/dummy/tmp/cache/assets/CAA/0C0/sprockets%2F057b0ce384f16d9202ae84473436cc35 +0 -0
- data/spec/dummy/tmp/cache/assets/CAD/410/sprockets%2F651414e5c7e86f05c5108dc71626b25c +0 -0
- data/spec/dummy/tmp/cache/assets/CBB/FA0/sprockets%2F74922109263bdc965b2e9567eec6d154 +0 -0
- data/spec/dummy/tmp/cache/assets/CBF/630/sprockets%2F707d2db81468088470d476abff35388d +0 -0
- data/spec/dummy/tmp/cache/assets/CC2/EC0/sprockets%2F76bf80cb571ca530357f78db78167866 +0 -0
- data/spec/dummy/tmp/cache/assets/CCE/C50/sprockets%2Fe12774c2fea852112414bb379a71f31a +0 -0
- data/spec/dummy/tmp/cache/assets/CD3/460/sprockets%2F7f3f6802b0b309ed142d0b671c9640c4 +0 -0
- data/spec/dummy/tmp/cache/assets/CD9/DD0/sprockets%2Fe5774759168a731da1c1149ecf0e1b03 +0 -0
- data/spec/dummy/tmp/cache/assets/CE0/090/sprockets%2F48d5d35ae87d0723318b8bc257fa2237 +0 -0
- data/spec/dummy/tmp/cache/assets/CE3/1F0/sprockets%2Fe69a515d3a9d14c669be8871012a7d07 +0 -0
- data/spec/dummy/tmp/cache/assets/CE6/270/sprockets%2F2c98152560d18470fec8cf4c6829b4d0 +0 -0
- data/spec/dummy/tmp/cache/assets/CE6/7C0/sprockets%2Fa03a2c86ce6724be8542295e1cf24798 +0 -0
- data/spec/dummy/tmp/cache/assets/CE7/A60/sprockets%2Ff58eee249aa167d23f8220087bb46684 +0 -0
- data/spec/dummy/tmp/cache/assets/CE9/9E0/sprockets%2F135480d497ed7e4884462dc0ef0b80d7 +0 -0
- data/spec/dummy/tmp/cache/assets/CEB/B40/sprockets%2F1150bf8d912aa100a132251eefaf6045 +0 -0
- data/spec/dummy/tmp/cache/assets/CF8/780/sprockets%2F8845b81ff27cdb57c835836c9f91a265 +0 -0
- data/spec/dummy/tmp/cache/assets/CFC/380/sprockets%2Fa7443cbd671446a589867dd5f4a4f989 +0 -0
- data/spec/dummy/tmp/cache/assets/D00/110/sprockets%2F6a6353b7723a8b21708e0fbfe04bd422 +0 -0
- data/spec/dummy/tmp/cache/assets/D00/F60/sprockets%2F42e279b52511c47d26c0adb125fd04e8 +0 -0
- data/spec/dummy/tmp/cache/assets/D03/630/sprockets%2F5d8da32dba6a7be70426a1d554773701 +0 -0
- data/spec/dummy/tmp/cache/assets/D04/170/sprockets%2F76ab1dc02e6c7618852708a1e05a2df3 +0 -0
- data/spec/dummy/tmp/cache/assets/D04/480/sprockets%2F8bd8f10500b21d2f9d94e4cd1401c936 +0 -0
- data/spec/dummy/tmp/cache/assets/D05/8D0/sprockets%2F319f8f235f452343f1ebf03cb262d23d +0 -0
- data/spec/dummy/tmp/cache/assets/D09/BF0/sprockets%2F9e6bca5d26f50d9484385d51ba04312c +0 -0
- data/spec/dummy/tmp/cache/assets/D1E/AA0/sprockets%2F5c8741a556bc955cd36e61c88582b6dc +0 -0
- data/spec/dummy/tmp/cache/assets/D31/9C0/sprockets%2Fbd102a4f5a4985c3519dd6ab0295a1c6 +0 -0
- data/spec/dummy/tmp/cache/assets/D35/7C0/sprockets%2Ff536a2606eaf7d542c0985104cb62baf +0 -0
- data/spec/dummy/tmp/cache/assets/D3C/840/sprockets%2Fc6202ec91d567a85bd3d46dc43ea9108 +0 -0
- data/spec/dummy/tmp/cache/assets/D45/C30/sprockets%2Fcc744877558178a3adb77c441cadce70 +0 -0
- data/spec/dummy/tmp/cache/assets/D49/A10/sprockets%2Fc4656bd995a6f297c26d19b13aadb963 +0 -0
- data/spec/dummy/tmp/cache/assets/D50/D70/sprockets%2Fe2a3e6c95b11e0801a4eebae3a026026 +0 -0
- data/spec/dummy/tmp/cache/assets/D51/400/sprockets%2Ff5e433d8a31e80985b75ce598de236be +0 -0
- data/spec/dummy/tmp/cache/assets/D61/1F0/sprockets%2F0c7a6176d2fc4db00bb9a74d36380fe1 +0 -0
- data/spec/dummy/tmp/cache/assets/D67/BC0/sprockets%2F35d2c2b45981ade5a2db2a9c7f37a615 +0 -0
- data/spec/dummy/tmp/cache/assets/D69/F90/sprockets%2F6a0795b7b38bd7e6142cd1b88211dade +0 -0
- data/spec/dummy/tmp/cache/assets/D6A/950/sprockets%2F429b1806cb7580ebf29f9a12c33cbea6 +0 -0
- data/spec/dummy/tmp/cache/assets/D6D/DA0/sprockets%2Fac936bf40b42227a2bf9d474ae9ec149 +0 -0
- data/spec/dummy/tmp/cache/assets/D78/2F0/sprockets%2F3c61f8915b8f717b1de788e6ecad122c +0 -0
- data/spec/dummy/tmp/cache/assets/DA5/0A0/sprockets%2F7a4b5928cec69ab65afff309a04d6b47 +0 -0
- data/spec/dummy/tmp/cache/assets/DAE/6C0/sprockets%2F77c7a8676aeefa73156c55dfcf51cc46 +0 -0
- data/spec/dummy/tmp/cache/assets/DB3/5D0/sprockets%2Fce1d4d75832c9bdeafd869f6f7b61725 +0 -0
- data/spec/dummy/tmp/cache/assets/DB5/040/sprockets%2F9a9da5df88713663b9fbc945facca891 +0 -0
- data/spec/dummy/tmp/cache/assets/DC7/A10/sprockets%2F84a8af0fcbf401864e1ae5bf092cba94 +0 -0
- data/spec/dummy/tmp/cache/assets/DE4/140/sprockets%2F139e4ab85d1aacb22c115fa136afdc8a +0 -0
- data/spec/dummy/tmp/cache/assets/DF6/0E0/sprockets%2F85b10db6e1afe643aba6d396abdd77f0 +0 -0
- data/spec/dummy/tmp/cache/assets/DF7/E10/sprockets%2F25e4253aba9a9adcefb72552fb1ff0c8 +0 -0
- data/spec/dummy/tmp/cache/assets/DFC/C30/sprockets%2Fb50a07cb30b0bd0eec8e98e5de79d65d +0 -0
- data/spec/dummy/tmp/cache/assets/E02/6E0/sprockets%2F63d6a5cdb8cefa64ef76b5c6e0fd3720 +0 -0
- data/spec/dummy/tmp/cache/assets/E08/F20/sprockets%2F4fc5cdcd6974efe7adfe809b30bd6513 +0 -0
- data/spec/dummy/tmp/cache/assets/E41/250/sprockets%2F97cf8fe3d7ffaff076f655aefb36da03 +0 -0
- data/spec/dummy/tmp/cache/assets/E6E/260/sprockets%2Fd9f8ab8b91ef582cc6c99a3ba0dedfe6 +0 -0
- data/spec/dummy/tmp/cache/assets/F79/360/sprockets%2F0ce035fefee5ebdabc8efabfbdbd6ee4 +0 -0
- data/spec/javascripts/teabag/base/reporters/html_spec.coffee +17 -2
- data/spec/javascripts/teabag/base/runner_spec.coffee +2 -2
- data/spec/javascripts/teabag/base/teabag_spec.coffee +1 -1
- data/spec/teabag/suite_spec.rb +8 -0
- metadata +4 -4
data/spec/dummy/log/test.log
CHANGED
@@ -4138,3 +4138,73 @@ Compiled drivers/phantomjs/runner.js (122ms) (pid 80451)
|
|
4138
4138
|
Compiled teabag/phantomjs/runner_spec.js (271ms) (pid 80451)
|
4139
4139
|
Rendered /Users/jejacks0n/Projects/teabag/app/views/teabag/spec/index.html.erb (1704.9ms)
|
4140
4140
|
Completed 200 OK in 1719ms (Views: 1719.1ms)
|
4141
|
+
Started GET "/teabag/foo" for 127.0.0.1 at 2012-12-25 19:44:18 -0700
|
4142
|
+
Processing by Teabag::SpecController#index as */*
|
4143
|
+
Parameters: {"suite"=>"foo"}
|
4144
|
+
Compiled teabag-jasmine.js (0ms) (pid 82833)
|
4145
|
+
Compiled spec_helper.js (165ms) (pid 82833)
|
4146
|
+
Compiled teabag/base/reporters/console_spec.js (160ms) (pid 82833)
|
4147
|
+
Compiled teabag/base/reporters/html/base_view_spec.js (139ms) (pid 82833)
|
4148
|
+
Compiled teabag/base/reporters/html/failure_view_spec.js (127ms) (pid 82833)
|
4149
|
+
Compiled teabag/base/reporters/html/progress_view_spec.js (105ms) (pid 82833)
|
4150
|
+
Compiled teabag/base/reporters/html/spec_view_spec.js (102ms) (pid 82833)
|
4151
|
+
Compiled teabag/base/reporters/html/suite_view_spec.js (97ms) (pid 82833)
|
4152
|
+
Compiled teabag/base/reporters/html_spec.js (185ms) (pid 82833)
|
4153
|
+
Compiled teabag/base/runner_spec.js (152ms) (pid 82833)
|
4154
|
+
Compiled teabag/base/teabag_spec.js (114ms) (pid 82833)
|
4155
|
+
Compiled drivers/phantomjs/runner.js (123ms) (pid 82833)
|
4156
|
+
Compiled teabag/phantomjs/runner_spec.js (274ms) (pid 82833)
|
4157
|
+
Rendered /Users/jejacks0n/Projects/teabag/app/views/teabag/spec/index.html.erb (1801.2ms)
|
4158
|
+
Completed 200 OK in 1815ms (Views: 1814.6ms)
|
4159
|
+
Started GET "/teabag/foo" for 127.0.0.1 at 2012-12-26 15:40:32 -0700
|
4160
|
+
Processing by Teabag::SpecController#index as */*
|
4161
|
+
Parameters: {"suite"=>"foo"}
|
4162
|
+
Compiled spec_helper.js (123ms) (pid 88067)
|
4163
|
+
Compiled teabag/base/reporters/console_spec.js (141ms) (pid 88067)
|
4164
|
+
Compiled teabag/base/reporters/html/base_view_spec.js (126ms) (pid 88067)
|
4165
|
+
Compiled teabag/base/reporters/html/failure_view_spec.js (98ms) (pid 88067)
|
4166
|
+
Compiled teabag/base/reporters/html/progress_view_spec.js (94ms) (pid 88067)
|
4167
|
+
Compiled teabag/base/reporters/html/spec_view_spec.js (96ms) (pid 88067)
|
4168
|
+
Compiled teabag/base/reporters/html/suite_view_spec.js (110ms) (pid 88067)
|
4169
|
+
Compiled teabag/base/reporters/html_spec.js (170ms) (pid 88067)
|
4170
|
+
Compiled teabag/base/runner_spec.js (119ms) (pid 88067)
|
4171
|
+
Compiled teabag/base/teabag_spec.js (111ms) (pid 88067)
|
4172
|
+
Compiled drivers/phantomjs/runner.js (121ms) (pid 88067)
|
4173
|
+
Compiled teabag/phantomjs/runner_spec.js (266ms) (pid 88067)
|
4174
|
+
Rendered /Users/jejacks0n/Projects/teabag/app/views/teabag/spec/index.html.erb (1635.3ms)
|
4175
|
+
Completed 200 OK in 1680ms (Views: 1679.5ms)
|
4176
|
+
Started GET "/teabag/foo" for 127.0.0.1 at 2012-12-26 23:23:24 -0700
|
4177
|
+
Processing by Teabag::SpecController#index as */*
|
4178
|
+
Parameters: {"suite"=>"foo"}
|
4179
|
+
Compiled spec_helper.js (176ms) (pid 91778)
|
4180
|
+
Compiled teabag/base/reporters/console_spec.js (140ms) (pid 91778)
|
4181
|
+
Compiled teabag/base/reporters/html/base_view_spec.js (136ms) (pid 91778)
|
4182
|
+
Compiled teabag/base/reporters/html/failure_view_spec.js (133ms) (pid 91778)
|
4183
|
+
Compiled teabag/base/reporters/html/progress_view_spec.js (101ms) (pid 91778)
|
4184
|
+
Compiled teabag/base/reporters/html/spec_view_spec.js (101ms) (pid 91778)
|
4185
|
+
Compiled teabag/base/reporters/html/suite_view_spec.js (100ms) (pid 91778)
|
4186
|
+
Compiled teabag/base/reporters/html_spec.js (169ms) (pid 91778)
|
4187
|
+
Compiled teabag/base/runner_spec.js (150ms) (pid 91778)
|
4188
|
+
Compiled teabag/base/teabag_spec.js (115ms) (pid 91778)
|
4189
|
+
Compiled drivers/phantomjs/runner.js (121ms) (pid 91778)
|
4190
|
+
Compiled teabag/phantomjs/runner_spec.js (270ms) (pid 91778)
|
4191
|
+
Rendered /Users/jejacks0n/Projects/teabag/app/views/teabag/spec/index.html.erb (1730.3ms)
|
4192
|
+
Completed 200 OK in 1763ms (Views: 1762.3ms)
|
4193
|
+
Started GET "/teabag/foo" for 127.0.0.1 at 2012-12-26 23:43:10 -0700
|
4194
|
+
Processing by Teabag::SpecController#index as */*
|
4195
|
+
Parameters: {"suite"=>"foo"}
|
4196
|
+
Compiled teabag-jasmine.js (0ms) (pid 93819)
|
4197
|
+
Compiled spec_helper.js (114ms) (pid 93819)
|
4198
|
+
Compiled teabag/base/reporters/console_spec.js (133ms) (pid 93819)
|
4199
|
+
Compiled teabag/base/reporters/html/base_view_spec.js (123ms) (pid 93819)
|
4200
|
+
Compiled teabag/base/reporters/html/failure_view_spec.js (95ms) (pid 93819)
|
4201
|
+
Compiled teabag/base/reporters/html/progress_view_spec.js (94ms) (pid 93819)
|
4202
|
+
Compiled teabag/base/reporters/html/spec_view_spec.js (94ms) (pid 93819)
|
4203
|
+
Compiled teabag/base/reporters/html/suite_view_spec.js (94ms) (pid 93819)
|
4204
|
+
Compiled teabag/base/reporters/html_spec.js (201ms) (pid 93819)
|
4205
|
+
Compiled teabag/base/runner_spec.js (118ms) (pid 93819)
|
4206
|
+
Compiled teabag/base/teabag_spec.js (112ms) (pid 93819)
|
4207
|
+
Compiled drivers/phantomjs/runner.js (166ms) (pid 93819)
|
4208
|
+
Compiled teabag/phantomjs/runner_spec.js (312ms) (pid 93819)
|
4209
|
+
Rendered /Users/jejacks0n/Projects/teabag/app/views/teabag/spec/index.html.erb (1620.4ms)
|
4210
|
+
Completed 200 OK in 1647ms (Views: 1647.2ms)
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -73,16 +73,31 @@ describe "Teabag.Reporters.HTML", ->
|
|
73
73
|
|
74
74
|
beforeEach ->
|
75
75
|
@el = {}
|
76
|
+
@buildSuiteSelectSpy = spyOn(@reporter, "buildSuiteSelect")
|
76
77
|
@createElSpy = spyOn(@reporter, "createEl").andReturn(@el)
|
77
78
|
@appendChildSpy = spyOn(document.body, "appendChild")
|
78
79
|
@reporter.buildLayout()
|
79
80
|
|
81
|
+
it "calls buildSuiteSelect", ->
|
82
|
+
expect(@buildSuiteSelectSpy).toHaveBeenCalled()
|
83
|
+
|
80
84
|
it "creates an element and appends it to the body", ->
|
81
85
|
expect(@createElSpy).toHaveBeenCalledWith("div")
|
82
86
|
expect(@appendChildSpy).toHaveBeenCalledWith(@el)
|
83
87
|
expect(@el.innerHTML).toContain("Teabag")
|
84
88
|
|
85
89
|
|
90
|
+
describe "#buildSuiteSelect", ->
|
91
|
+
|
92
|
+
beforeEach ->
|
93
|
+
Teabag.suites = {all: ["default", "foo", "bar"], active: "foo"}
|
94
|
+
|
95
|
+
it "builds a select that displays the suites", ->
|
96
|
+
result = @reporter.buildSuiteSelect()
|
97
|
+
expect(result).toContain("select id=")
|
98
|
+
expect(result).toContain("selected='selected' value=\"foo\"")
|
99
|
+
|
100
|
+
|
86
101
|
describe "#buildProgress", ->
|
87
102
|
|
88
103
|
beforeEach ->
|
@@ -308,8 +323,8 @@ describe "Teabag.Reporters.HTML", ->
|
|
308
323
|
@reporter.setFilter("_filter_")
|
309
324
|
|
310
325
|
it "sets a class and the html for the filter display", ->
|
311
|
-
expect(@setClassSpy).toHaveBeenCalledWith("
|
312
|
-
expect(@setHtmlSpy).toHaveBeenCalledWith("
|
326
|
+
expect(@setClassSpy).toHaveBeenCalledWith("filter", "teabag-filtered")
|
327
|
+
expect(@setHtmlSpy).toHaveBeenCalledWith("filter-info", "_filter_", true)
|
313
328
|
|
314
329
|
|
315
330
|
describe "#readConfig", ->
|
@@ -15,8 +15,8 @@ describe "Teabag.Runner", ->
|
|
15
15
|
new Teabag.Runner()
|
16
16
|
expect(Teabag.Runner.run).toEqual(true)
|
17
17
|
|
18
|
-
it "sets @fixturePath to whatever was in Teabag.
|
19
|
-
Teabag.
|
18
|
+
it "sets @fixturePath to whatever was in Teabag.root", ->
|
19
|
+
Teabag.root = "/path/to"
|
20
20
|
runner = new Teabag.Runner()
|
21
21
|
expect(runner.fixturePath).toEqual("/path/to/fixtures")
|
22
22
|
|
@@ -7,7 +7,7 @@ describe "Teabag", ->
|
|
7
7
|
# common
|
8
8
|
expect(keys).toContain("defer")
|
9
9
|
expect(keys).toContain("slow")
|
10
|
-
expect(keys).toContain("
|
10
|
+
expect(keys).toContain("root")
|
11
11
|
expect(keys).toContain("finished")
|
12
12
|
expect(keys).toContain("execute")
|
13
13
|
expect(keys).toContain("version")
|
data/spec/teabag/suite_spec.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: teabag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-12-
|
12
|
+
date: 2012-12-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|
@@ -673,7 +673,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
673
673
|
version: '0'
|
674
674
|
segments:
|
675
675
|
- 0
|
676
|
-
hash:
|
676
|
+
hash: 1353945431113081949
|
677
677
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
678
678
|
none: false
|
679
679
|
requirements:
|
@@ -682,7 +682,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
682
682
|
version: '0'
|
683
683
|
segments:
|
684
684
|
- 0
|
685
|
-
hash:
|
685
|
+
hash: 1353945431113081949
|
686
686
|
requirements: []
|
687
687
|
rubyforge_project:
|
688
688
|
rubygems_version: 1.8.24
|