riot-rails 0.0.10.pre.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. data/.gitignore +4 -0
  2. data/CHANGELOG +144 -0
  3. data/MIT-LICENSE +20 -0
  4. data/README.markdown +31 -0
  5. data/Rakefile +43 -0
  6. data/VERSION +1 -0
  7. data/lib/riot/action_controller/context_macros/asserts_response.rb +15 -0
  8. data/lib/riot/action_controller/context_middleware.rb +45 -0
  9. data/lib/riot/action_controller/http_methods.rb +19 -0
  10. data/lib/riot/action_controller.rb +4 -0
  11. data/lib/riot/active_record/assertion_macros.rb +3 -0
  12. data/lib/riot/active_record/context_middleware.rb +15 -0
  13. data/lib/riot/active_record/database_macros.rb +58 -0
  14. data/lib/riot/active_record/reflection_macros.rb +106 -0
  15. data/lib/riot/active_record/transactional_middleware.rb +21 -0
  16. data/lib/riot/active_record/validation_macros.rb +187 -0
  17. data/lib/riot/active_record.rb +4 -0
  18. data/lib/riot/rails.rb +1 -0
  19. data/rails/init.rb +1 -0
  20. data/riot-rails.gemspec +130 -0
  21. data/test/action_controller/context_macros/asserts_response_test.rb +35 -0
  22. data/test/action_controller/context_middleware_test.rb +66 -0
  23. data/test/action_controller/delete_request_test.rb +45 -0
  24. data/test/action_controller/get_request_test.rb +37 -0
  25. data/test/action_controller/post_request_test.rb +45 -0
  26. data/test/action_controller/put_request_test.rb +45 -0
  27. data/test/action_controller/restful_delete_request_test.rb +28 -0
  28. data/test/action_controller/restful_get_request_test.rb +25 -0
  29. data/test/action_controller/restful_post_request_test.rb +25 -0
  30. data/test/action_controller/restful_put_request_test.rb +28 -0
  31. data/test/active_record/allowing_values_test.rb +64 -0
  32. data/test/active_record/attribute_is_invalid_test.rb +20 -0
  33. data/test/active_record/belongs_to_test.rb +22 -0
  34. data/test/active_record/context_middleware_test.rb +18 -0
  35. data/test/active_record/has_and_belongs_to_many_test.rb +22 -0
  36. data/test/active_record/has_database_index_on_test.rb +73 -0
  37. data/test/active_record/has_many_test.rb +22 -0
  38. data/test/active_record/has_one_test.rb +22 -0
  39. data/test/active_record/validates_length_of_test.rb +31 -0
  40. data/test/active_record/validates_presence_of_test.rb +14 -0
  41. data/test/active_record/validates_uniqueness_of_test.rb +23 -0
  42. data/test/rails_root/app/controllers/gremlins_controller.rb +21 -0
  43. data/test/rails_root/app/controllers/parties_controller.rb +17 -0
  44. data/test/rails_root/app/controllers/rooms_controller.rb +22 -0
  45. data/test/rails_root/app/views/rendered_templates/foo_bar.html.erb +0 -0
  46. data/test/rails_root/config/database.yml +4 -0
  47. data/test/rails_root/config/environment.rb +46 -0
  48. data/test/rails_root/config/routes.rb +7 -0
  49. data/test/rails_root/db/schema.rb +8 -0
  50. data/test/teststrap.rb +84 -0
  51. data/test/transactional_middleware_test.rb +26 -0
  52. metadata +201 -0
metadata ADDED
@@ -0,0 +1,201 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: riot-rails
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: true
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 10
9
+ - pre
10
+ - 3
11
+ version: 0.0.10.pre.3
12
+ platform: ruby
13
+ authors:
14
+ - Justin 'Gus' Knowlden
15
+ autorequire:
16
+ bindir: bin
17
+ cert_chain: []
18
+
19
+ date: 2010-06-04 00:00:00 -05:00
20
+ default_executable:
21
+ dependencies:
22
+ - !ruby/object:Gem::Dependency
23
+ name: riot
24
+ prerelease: false
25
+ requirement: &id001 !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ segments:
30
+ - 0
31
+ - 11
32
+ - 0
33
+ version: 0.11.0
34
+ type: :runtime
35
+ version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
37
+ name: rack-test
38
+ prerelease: false
39
+ requirement: &id002 !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ segments:
44
+ - 0
45
+ - 5
46
+ - 3
47
+ version: 0.5.3
48
+ type: :runtime
49
+ version_requirements: *id002
50
+ - !ruby/object:Gem::Dependency
51
+ name: activerecord
52
+ prerelease: false
53
+ requirement: &id003 !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ segments:
58
+ - 3
59
+ - 0
60
+ - 0
61
+ - beta3
62
+ version: 3.0.0.beta3
63
+ type: :development
64
+ version_requirements: *id003
65
+ - !ruby/object:Gem::Dependency
66
+ name: actionpack
67
+ prerelease: false
68
+ requirement: &id004 !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ segments:
73
+ - 3
74
+ - 0
75
+ - 0
76
+ - beta3
77
+ version: 3.0.0.beta3
78
+ type: :development
79
+ version_requirements: *id004
80
+ description: Riot specific test support for Rails apps. Protest the slow app.
81
+ email: gus@gusg.us
82
+ executables: []
83
+
84
+ extensions: []
85
+
86
+ extra_rdoc_files:
87
+ - README.markdown
88
+ files:
89
+ - .gitignore
90
+ - CHANGELOG
91
+ - MIT-LICENSE
92
+ - README.markdown
93
+ - Rakefile
94
+ - VERSION
95
+ - lib/riot/action_controller.rb
96
+ - lib/riot/action_controller/context_macros/asserts_response.rb
97
+ - lib/riot/action_controller/context_middleware.rb
98
+ - lib/riot/action_controller/http_methods.rb
99
+ - lib/riot/active_record.rb
100
+ - lib/riot/active_record/assertion_macros.rb
101
+ - lib/riot/active_record/context_middleware.rb
102
+ - lib/riot/active_record/database_macros.rb
103
+ - lib/riot/active_record/reflection_macros.rb
104
+ - lib/riot/active_record/transactional_middleware.rb
105
+ - lib/riot/active_record/validation_macros.rb
106
+ - lib/riot/rails.rb
107
+ - rails/init.rb
108
+ - riot-rails.gemspec
109
+ - test/action_controller/context_macros/asserts_response_test.rb
110
+ - test/action_controller/context_middleware_test.rb
111
+ - test/action_controller/delete_request_test.rb
112
+ - test/action_controller/get_request_test.rb
113
+ - test/action_controller/post_request_test.rb
114
+ - test/action_controller/put_request_test.rb
115
+ - test/action_controller/restful_delete_request_test.rb
116
+ - test/action_controller/restful_get_request_test.rb
117
+ - test/action_controller/restful_post_request_test.rb
118
+ - test/action_controller/restful_put_request_test.rb
119
+ - test/active_record/allowing_values_test.rb
120
+ - test/active_record/attribute_is_invalid_test.rb
121
+ - test/active_record/belongs_to_test.rb
122
+ - test/active_record/context_middleware_test.rb
123
+ - test/active_record/has_and_belongs_to_many_test.rb
124
+ - test/active_record/has_database_index_on_test.rb
125
+ - test/active_record/has_many_test.rb
126
+ - test/active_record/has_one_test.rb
127
+ - test/active_record/validates_length_of_test.rb
128
+ - test/active_record/validates_presence_of_test.rb
129
+ - test/active_record/validates_uniqueness_of_test.rb
130
+ - test/rails_root/app/controllers/gremlins_controller.rb
131
+ - test/rails_root/app/controllers/parties_controller.rb
132
+ - test/rails_root/app/controllers/rooms_controller.rb
133
+ - test/rails_root/app/views/rendered_templates/foo_bar.html.erb
134
+ - test/rails_root/config/database.yml
135
+ - test/rails_root/config/environment.rb
136
+ - test/rails_root/config/routes.rb
137
+ - test/rails_root/db/schema.rb
138
+ - test/teststrap.rb
139
+ - test/transactional_middleware_test.rb
140
+ has_rdoc: true
141
+ homepage: http://github.com/thumblemonks/riot-rails
142
+ licenses: []
143
+
144
+ post_install_message:
145
+ rdoc_options:
146
+ - --charset=UTF-8
147
+ require_paths:
148
+ - lib
149
+ required_ruby_version: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - ">="
152
+ - !ruby/object:Gem::Version
153
+ segments:
154
+ - 0
155
+ version: "0"
156
+ required_rubygems_version: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - ">"
159
+ - !ruby/object:Gem::Version
160
+ segments:
161
+ - 1
162
+ - 3
163
+ - 1
164
+ version: 1.3.1
165
+ requirements: []
166
+
167
+ rubyforge_project:
168
+ rubygems_version: 1.3.6
169
+ signing_key:
170
+ specification_version: 3
171
+ summary: Riot specific test support for Rails apps
172
+ test_files:
173
+ - test/action_controller/context_macros/asserts_response_test.rb
174
+ - test/action_controller/context_middleware_test.rb
175
+ - test/action_controller/delete_request_test.rb
176
+ - test/action_controller/get_request_test.rb
177
+ - test/action_controller/post_request_test.rb
178
+ - test/action_controller/put_request_test.rb
179
+ - test/action_controller/restful_delete_request_test.rb
180
+ - test/action_controller/restful_get_request_test.rb
181
+ - test/action_controller/restful_post_request_test.rb
182
+ - test/action_controller/restful_put_request_test.rb
183
+ - test/active_record/allowing_values_test.rb
184
+ - test/active_record/attribute_is_invalid_test.rb
185
+ - test/active_record/belongs_to_test.rb
186
+ - test/active_record/context_middleware_test.rb
187
+ - test/active_record/has_and_belongs_to_many_test.rb
188
+ - test/active_record/has_database_index_on_test.rb
189
+ - test/active_record/has_many_test.rb
190
+ - test/active_record/has_one_test.rb
191
+ - test/active_record/validates_length_of_test.rb
192
+ - test/active_record/validates_presence_of_test.rb
193
+ - test/active_record/validates_uniqueness_of_test.rb
194
+ - test/rails_root/app/controllers/gremlins_controller.rb
195
+ - test/rails_root/app/controllers/parties_controller.rb
196
+ - test/rails_root/app/controllers/rooms_controller.rb
197
+ - test/rails_root/config/environment.rb
198
+ - test/rails_root/config/routes.rb
199
+ - test/rails_root/db/schema.rb
200
+ - test/teststrap.rb
201
+ - test/transactional_middleware_test.rb