multi_mocha_rails 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. data/MIT-LICENSE +22 -0
  2. data/Rakefile +38 -0
  3. data/Readme.md +7 -0
  4. data/app/assets/javascripts/mocha_rails/application.js +4 -0
  5. data/app/assets/javascripts/mocha_rails/mocha-rails.js +7 -0
  6. data/app/assets/stylesheets/mocha_rails/application.css +13 -0
  7. data/app/controllers/mocha_rails/application_controller.rb +4 -0
  8. data/app/controllers/mocha_rails/tests_controller.rb +52 -0
  9. data/app/helpers/mocha_rails/application_helper.rb +4 -0
  10. data/app/views/layouts/mocha.html.erb +14 -0
  11. data/app/views/mocha_rails/tests/index.html.erb +10 -0
  12. data/app/views/mocha_rails/tests/list.html.erb +11 -0
  13. data/config/initializers/mocha_rails.rb +4 -0
  14. data/config/routes.rb +8 -0
  15. data/lib/generators/mocha_rails/install_generator.rb +15 -0
  16. data/lib/generators/mocha_rails/templates/mocha-suite.js +12 -0
  17. data/lib/mocha_rails.rb +4 -0
  18. data/lib/mocha_rails/engine.rb +5 -0
  19. data/lib/mocha_rails/version.rb +3 -0
  20. data/lib/tasks/mocha_rails_tasks.rake +4 -0
  21. data/test/dummy/README.rdoc +261 -0
  22. data/test/dummy/Rakefile +7 -0
  23. data/test/dummy/app/assets/javascripts/application.js +15 -0
  24. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  25. data/test/dummy/app/controllers/application_controller.rb +3 -0
  26. data/test/dummy/app/helpers/application_helper.rb +2 -0
  27. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  28. data/test/dummy/config.ru +4 -0
  29. data/test/dummy/config/application.rb +62 -0
  30. data/test/dummy/config/boot.rb +10 -0
  31. data/test/dummy/config/environment.rb +5 -0
  32. data/test/dummy/config/environments/development.rb +31 -0
  33. data/test/dummy/config/environments/production.rb +64 -0
  34. data/test/dummy/config/environments/test.rb +35 -0
  35. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  36. data/test/dummy/config/initializers/inflections.rb +15 -0
  37. data/test/dummy/config/initializers/mime_types.rb +5 -0
  38. data/test/dummy/config/initializers/secret_token.rb +7 -0
  39. data/test/dummy/config/initializers/session_store.rb +8 -0
  40. data/test/dummy/config/initializers/wrap_parameters.rb +10 -0
  41. data/test/dummy/config/locales/en.yml +5 -0
  42. data/test/dummy/config/routes.rb +4 -0
  43. data/test/dummy/log/test.log +0 -0
  44. data/test/dummy/public/404.html +26 -0
  45. data/test/dummy/public/422.html +26 -0
  46. data/test/dummy/public/500.html +25 -0
  47. data/test/dummy/public/favicon.ico +0 -0
  48. data/test/dummy/script/rails +6 -0
  49. data/test/integration/navigation_test.rb +9 -0
  50. data/test/mocha_rails_test.rb +7 -0
  51. data/test/test_helper.rb +10 -0
  52. data/vendor/assets/javascripts/chai.js +2223 -0
  53. data/vendor/assets/javascripts/mocha.js +4068 -0
  54. data/vendor/assets/stylesheets/mocha.css +137 -0
  55. metadata +141 -0
@@ -0,0 +1,137 @@
1
+
2
+ body {
3
+ font: 20px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
4
+ padding: 60px 50px;
5
+ }
6
+
7
+ #mocha h1, h2 {
8
+ margin: 0;
9
+ }
10
+
11
+ #mocha h1 {
12
+ margin-top: 15px;
13
+ font-size: 1em;
14
+ font-weight: 200;
15
+ }
16
+
17
+ #mocha .suite .suite h1 {
18
+ margin-top: 0;
19
+ font-size: .8em;
20
+ }
21
+
22
+ #mocha h2 {
23
+ font-size: 12px;
24
+ font-weight: normal;
25
+ cursor: pointer;
26
+ }
27
+
28
+ #mocha .suite {
29
+ margin-left: 15px;
30
+ }
31
+
32
+ #mocha .test {
33
+ margin-left: 15px;
34
+ }
35
+
36
+ #mocha .test:hover h2::after {
37
+ position: relative;
38
+ top: 0;
39
+ right: -10px;
40
+ content: '(view source)';
41
+ font-size: 12px;
42
+ font-family: arial;
43
+ color: #888;
44
+ }
45
+
46
+ #mocha .test.pending:hover h2::after {
47
+ content: '(pending)';
48
+ font-family: arial;
49
+ }
50
+
51
+ #mocha .test.pass::before {
52
+ content: '✓';
53
+ font-size: 12px;
54
+ display: block;
55
+ float: left;
56
+ margin-right: 5px;
57
+ color: #00c41c;
58
+ }
59
+
60
+ #mocha .test.pending {
61
+ color: #0b97c4;
62
+ }
63
+
64
+ #mocha .test.pending::before {
65
+ content: '◦';
66
+ color: #0b97c4;
67
+ }
68
+
69
+ #mocha .test.fail {
70
+ color: #c00;
71
+ }
72
+
73
+ #mocha .test.fail pre {
74
+ color: black;
75
+ }
76
+
77
+ #mocha .test.fail::before {
78
+ content: '✖';
79
+ font-size: 12px;
80
+ display: block;
81
+ float: left;
82
+ margin-right: 5px;
83
+ color: #c00;
84
+ }
85
+
86
+ #mocha .test pre.error {
87
+ color: #c00;
88
+ }
89
+
90
+ #mocha .test pre {
91
+ display: inline-block;
92
+ font: 12px/1.5 monaco, monospace;
93
+ margin: 5px;
94
+ padding: 15px;
95
+ border: 1px solid #eee;
96
+ border-bottom-color: #ddd;
97
+ -webkit-border-radius: 3px;
98
+ -webkit-box-shadow: 0 1px 3px #eee;
99
+ }
100
+
101
+ #error {
102
+ color: #c00;
103
+ font-size: 1.5 em;
104
+ font-weight: 100;
105
+ letter-spacing: 1px;
106
+ }
107
+
108
+ #stats {
109
+ position: fixed;
110
+ top: 15px;
111
+ right: 10px;
112
+ font-size: 12px;
113
+ margin: 0;
114
+ color: #888;
115
+ }
116
+
117
+ #stats .progress {
118
+ float: right;
119
+ padding-top: 0;
120
+ }
121
+
122
+ #stats em {
123
+ color: black;
124
+ }
125
+
126
+ #stats li {
127
+ display: inline-block;
128
+ margin: 0 5px;
129
+ list-style: none;
130
+ padding-top: 11px;
131
+ }
132
+
133
+ code .comment { color: #ddd }
134
+ code .init { color: #2F6FAD }
135
+ code .string { color: #5890AD }
136
+ code .keyword { color: #8A6343 }
137
+ code .number { color: #2F6FAD }
metadata ADDED
@@ -0,0 +1,141 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: multi_mocha_rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.4
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Matias Niemela
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-06-04 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: &70267306627020 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: 3.1.0
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *70267306627020
25
+ description: Fork of mocha_rails with support for multiple suite files
26
+ email:
27
+ - matias@yearofmoo.com
28
+ executables: []
29
+ extensions: []
30
+ extra_rdoc_files: []
31
+ files:
32
+ - app/assets/javascripts/mocha_rails/application.js
33
+ - app/assets/javascripts/mocha_rails/mocha-rails.js
34
+ - app/assets/stylesheets/mocha_rails/application.css
35
+ - app/controllers/mocha_rails/application_controller.rb
36
+ - app/controllers/mocha_rails/tests_controller.rb
37
+ - app/helpers/mocha_rails/application_helper.rb
38
+ - app/views/layouts/mocha.html.erb
39
+ - app/views/mocha_rails/tests/index.html.erb
40
+ - app/views/mocha_rails/tests/list.html.erb
41
+ - config/initializers/mocha_rails.rb
42
+ - config/routes.rb
43
+ - lib/generators/mocha_rails/install_generator.rb
44
+ - lib/generators/mocha_rails/templates/mocha-suite.js
45
+ - lib/mocha_rails/engine.rb
46
+ - lib/mocha_rails/version.rb
47
+ - lib/mocha_rails.rb
48
+ - lib/tasks/mocha_rails_tasks.rake
49
+ - vendor/assets/javascripts/chai.js
50
+ - vendor/assets/javascripts/mocha.js
51
+ - vendor/assets/stylesheets/mocha.css
52
+ - MIT-LICENSE
53
+ - Rakefile
54
+ - Readme.md
55
+ - test/dummy/app/assets/javascripts/application.js
56
+ - test/dummy/app/assets/stylesheets/application.css
57
+ - test/dummy/app/controllers/application_controller.rb
58
+ - test/dummy/app/helpers/application_helper.rb
59
+ - test/dummy/app/views/layouts/application.html.erb
60
+ - test/dummy/config/application.rb
61
+ - test/dummy/config/boot.rb
62
+ - test/dummy/config/environment.rb
63
+ - test/dummy/config/environments/development.rb
64
+ - test/dummy/config/environments/production.rb
65
+ - test/dummy/config/environments/test.rb
66
+ - test/dummy/config/initializers/backtrace_silencers.rb
67
+ - test/dummy/config/initializers/inflections.rb
68
+ - test/dummy/config/initializers/mime_types.rb
69
+ - test/dummy/config/initializers/secret_token.rb
70
+ - test/dummy/config/initializers/session_store.rb
71
+ - test/dummy/config/initializers/wrap_parameters.rb
72
+ - test/dummy/config/locales/en.yml
73
+ - test/dummy/config/routes.rb
74
+ - test/dummy/config.ru
75
+ - test/dummy/log/test.log
76
+ - test/dummy/public/404.html
77
+ - test/dummy/public/422.html
78
+ - test/dummy/public/500.html
79
+ - test/dummy/public/favicon.ico
80
+ - test/dummy/Rakefile
81
+ - test/dummy/README.rdoc
82
+ - test/dummy/script/rails
83
+ - test/integration/navigation_test.rb
84
+ - test/mocha_rails_test.rb
85
+ - test/test_helper.rb
86
+ homepage: https://github.com/matsko/mocha_rails
87
+ licenses: []
88
+ post_install_message:
89
+ rdoc_options: []
90
+ require_paths:
91
+ - lib
92
+ required_ruby_version: !ruby/object:Gem::Requirement
93
+ none: false
94
+ requirements:
95
+ - - ! '>='
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ required_rubygems_version: !ruby/object:Gem::Requirement
99
+ none: false
100
+ requirements:
101
+ - - ! '>='
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ requirements: []
105
+ rubyforge_project:
106
+ rubygems_version: 1.8.15
107
+ signing_key:
108
+ specification_version: 3
109
+ summary: Fork of mocha_rails with support for multiple suite files
110
+ test_files:
111
+ - test/dummy/app/assets/javascripts/application.js
112
+ - test/dummy/app/assets/stylesheets/application.css
113
+ - test/dummy/app/controllers/application_controller.rb
114
+ - test/dummy/app/helpers/application_helper.rb
115
+ - test/dummy/app/views/layouts/application.html.erb
116
+ - test/dummy/config/application.rb
117
+ - test/dummy/config/boot.rb
118
+ - test/dummy/config/environment.rb
119
+ - test/dummy/config/environments/development.rb
120
+ - test/dummy/config/environments/production.rb
121
+ - test/dummy/config/environments/test.rb
122
+ - test/dummy/config/initializers/backtrace_silencers.rb
123
+ - test/dummy/config/initializers/inflections.rb
124
+ - test/dummy/config/initializers/mime_types.rb
125
+ - test/dummy/config/initializers/secret_token.rb
126
+ - test/dummy/config/initializers/session_store.rb
127
+ - test/dummy/config/initializers/wrap_parameters.rb
128
+ - test/dummy/config/locales/en.yml
129
+ - test/dummy/config/routes.rb
130
+ - test/dummy/config.ru
131
+ - test/dummy/log/test.log
132
+ - test/dummy/public/404.html
133
+ - test/dummy/public/422.html
134
+ - test/dummy/public/500.html
135
+ - test/dummy/public/favicon.ico
136
+ - test/dummy/Rakefile
137
+ - test/dummy/README.rdoc
138
+ - test/dummy/script/rails
139
+ - test/integration/navigation_test.rb
140
+ - test/mocha_rails_test.rb
141
+ - test/test_helper.rb