rspec-rails 1.1.11 → 1.1.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (140) hide show
  1. data/History.txt +29 -0
  2. data/Manifest.txt +94 -94
  3. data/README.txt +5 -7
  4. data/Rakefile +14 -2
  5. data/{spec_resources/views/controller_spec/_partial.rhtml → TODO.txt} +0 -0
  6. data/features/step_definitions/people.rb +6 -0
  7. data/features/support/env.rb +13 -0
  8. data/{stories/transactions_should_rollback → features/transactions/transactions_should_rollback.feature} +4 -3
  9. data/generators/rspec/rspec_generator.rb +0 -4
  10. data/generators/rspec/templates/rspec.rake +130 -104
  11. data/generators/rspec/templates/script/spec_server +17 -8
  12. data/generators/rspec/templates/spec_helper.rb +1 -1
  13. data/generators/rspec_default_values.rb +3 -3
  14. data/generators/rspec_scaffold/templates/edit_erb_spec.rb +7 -6
  15. data/generators/rspec_scaffold/templates/index_erb_spec.rb +9 -8
  16. data/generators/rspec_scaffold/templates/new_erb_spec.rb +7 -6
  17. data/generators/rspec_scaffold/templates/show_erb_spec.rb +9 -9
  18. data/lib/spec/rails.rb +14 -2
  19. data/lib/spec/rails/example/controller_example_group.rb +16 -23
  20. data/lib/spec/rails/example/cookies_proxy.rb +5 -1
  21. data/lib/spec/rails/example/functional_example_group.rb +17 -5
  22. data/lib/spec/rails/example/helper_example_group.rb +5 -4
  23. data/lib/spec/rails/example/rails_example_group.rb +10 -15
  24. data/lib/spec/rails/example/view_example_group.rb +5 -5
  25. data/lib/spec/rails/extensions.rb +1 -3
  26. data/lib/spec/rails/extensions/action_controller/base.rb +1 -1
  27. data/lib/spec/rails/extensions/action_controller/rescue.rb +9 -5
  28. data/lib/spec/rails/extensions/action_controller/test_response.rb +11 -2
  29. data/lib/spec/rails/extensions/action_view/base.rb +4 -2
  30. data/lib/spec/rails/extensions/active_record/base.rb +1 -2
  31. data/lib/spec/rails/extensions/spec/{example → runner}/configuration.rb +12 -7
  32. data/lib/spec/rails/matchers.rb +1 -0
  33. data/lib/spec/rails/matchers/ar_be_valid.rb +41 -0
  34. data/lib/spec/rails/matchers/redirect_to.rb +4 -2
  35. data/lib/spec/rails/matchers/render_template.rb +30 -10
  36. data/lib/spec/rails/mocks.rb +11 -8
  37. data/lib/spec/rails/version.rb +3 -2
  38. data/rspec-rails.gemspec +16 -8
  39. data/spec/{rails/autotest → autotest}/mappings_spec.rb +3 -3
  40. data/{spec_resources → spec/resources}/controllers/action_view_base_spec_controller.rb +0 -0
  41. data/spec/resources/controllers/application.rb +9 -0
  42. data/{spec_resources → spec/resources}/controllers/controller_spec_controller.rb +19 -6
  43. data/{spec_resources → spec/resources}/controllers/redirect_spec_controller.rb +7 -0
  44. data/{spec_resources → spec/resources}/controllers/render_spec_controller.rb +0 -0
  45. data/{spec_resources → spec/resources}/controllers/rjs_spec_controller.rb +0 -0
  46. data/{spec_resources → spec/resources}/helpers/addition_helper.rb +0 -0
  47. data/{spec_resources → spec/resources}/helpers/explicit_helper.rb +8 -0
  48. data/{spec_resources → spec/resources}/helpers/more_explicit_helper.rb +0 -0
  49. data/{spec_resources → spec/resources}/helpers/plugin_application_helper.rb +0 -0
  50. data/{spec_resources → spec/resources}/helpers/view_spec_helper.rb +0 -0
  51. data/spec/resources/models/animal.rb +4 -0
  52. data/spec/resources/models/person.rb +18 -0
  53. data/spec/resources/models/thing.rb +3 -0
  54. data/{spec_resources/views/controller_spec/action_setting_the_assigns_hash.rhtml → spec/resources/views/controller_spec/_partial.rhtml} +0 -0
  55. data/{spec_resources → spec/resources}/views/controller_spec/action_setting_flash_after_session_reset.rhtml +0 -0
  56. data/{spec_resources → spec/resources}/views/controller_spec/action_setting_flash_before_session_reset.rhtml +0 -0
  57. data/{spec_resources/views/layouts/application.rhtml → spec/resources/views/controller_spec/action_setting_the_assigns_hash.rhtml} +0 -0
  58. data/{spec_resources → spec/resources}/views/controller_spec/action_with_errors_in_template.rhtml +0 -0
  59. data/{spec_resources → spec/resources}/views/controller_spec/action_with_template.rhtml +0 -0
  60. data/{spec_resources/views/layouts/simple.rhtml → spec/resources/views/layouts/application.rhtml} +0 -0
  61. data/{spec_resources/views/render_spec/_a_partial.rhtml → spec/resources/views/layouts/simple.rhtml} +0 -0
  62. data/{spec_resources → spec/resources}/views/objects/_object.html.erb +0 -0
  63. data/{spec_resources/views/render_spec/action_with_alternate_layout.rhtml → spec/resources/views/render_spec/_a_partial.rhtml} +0 -0
  64. data/{spec_resources/views/render_spec/some_action.rhtml → spec/resources/views/render_spec/action_with_alternate_layout.rhtml} +0 -0
  65. data/{spec_resources/views/view_spec/_partial_used_twice.rhtml → spec/resources/views/render_spec/some_action.html.erb} +0 -0
  66. data/{spec_resources → spec/resources}/views/render_spec/some_action.js.rjs +0 -0
  67. data/{spec_resources → spec/resources}/views/render_spec/some_action.rjs +0 -0
  68. data/{spec_resources → spec/resources}/views/rjs_spec/_replacement_partial.rhtml +0 -0
  69. data/{spec_resources → spec/resources}/views/rjs_spec/hide_div.rjs +0 -0
  70. data/{spec_resources → spec/resources}/views/rjs_spec/hide_page_element.rjs +0 -0
  71. data/{spec_resources → spec/resources}/views/rjs_spec/insert_html.rjs +0 -0
  72. data/{spec_resources → spec/resources}/views/rjs_spec/replace.rjs +0 -0
  73. data/{spec_resources → spec/resources}/views/rjs_spec/replace_html.rjs +0 -0
  74. data/{spec_resources → spec/resources}/views/rjs_spec/replace_html_with_partial.rjs +0 -0
  75. data/{spec_resources → spec/resources}/views/rjs_spec/visual_effect.rjs +0 -0
  76. data/{spec_resources → spec/resources}/views/rjs_spec/visual_toggle_effect.rjs +0 -0
  77. data/{spec_resources → spec/resources}/views/tag_spec/no_tags.rhtml +0 -0
  78. data/{spec_resources → spec/resources}/views/tag_spec/single_div_with_no_attributes.rhtml +0 -0
  79. data/{spec_resources → spec/resources}/views/tag_spec/single_div_with_one_attribute.rhtml +0 -0
  80. data/{spec_resources → spec/resources}/views/view_spec/_partial.rhtml +0 -0
  81. data/spec/resources/views/view_spec/_partial_used_twice.rhtml +0 -0
  82. data/{spec_resources → spec/resources}/views/view_spec/_partial_with_local_variable.rhtml +0 -0
  83. data/{spec_resources → spec/resources}/views/view_spec/_partial_with_sub_partial.rhtml +0 -0
  84. data/{spec_resources → spec/resources}/views/view_spec/_spacer.rhtml +0 -0
  85. data/{spec_resources → spec/resources}/views/view_spec/accessor.rhtml +0 -0
  86. data/{spec_resources → spec/resources}/views/view_spec/block_helper.rhtml +0 -0
  87. data/{spec_resources → spec/resources}/views/view_spec/entry_form.rhtml +0 -0
  88. data/{spec_resources → spec/resources}/views/view_spec/explicit_helper.rhtml +0 -0
  89. data/{spec_resources → spec/resources}/views/view_spec/foo/show.rhtml +0 -0
  90. data/{spec_resources → spec/resources}/views/view_spec/implicit_helper.rhtml +0 -0
  91. data/{spec_resources → spec/resources}/views/view_spec/multiple_helpers.rhtml +0 -0
  92. data/spec/resources/views/view_spec/path_params.html.erb +1 -0
  93. data/{spec_resources → spec/resources}/views/view_spec/should_not_receive.rhtml +0 -0
  94. data/{spec_resources → spec/resources}/views/view_spec/template_with_partial.rhtml +0 -0
  95. data/{spec_resources → spec/resources}/views/view_spec/template_with_partial_using_collection.rhtml +0 -0
  96. data/{spec_resources → spec/resources}/views/view_spec/template_with_partial_with_array.rhtml +0 -0
  97. data/spec/{rails → spec/rails}/example/assigns_hash_proxy_spec.rb +1 -1
  98. data/spec/spec/rails/example/configuration_spec.rb +79 -0
  99. data/spec/{rails → spec/rails}/example/controller_isolation_spec.rb +1 -7
  100. data/spec/{rails → spec/rails}/example/controller_spec_spec.rb +63 -6
  101. data/spec/{rails → spec/rails}/example/cookies_proxy_spec.rb +30 -13
  102. data/spec/{rails → spec/rails}/example/example_group_factory_spec.rb +1 -1
  103. data/spec/{rails → spec/rails}/example/helper_spec_spec.rb +28 -1
  104. data/spec/{rails → spec/rails}/example/model_spec_spec.rb +1 -1
  105. data/spec/{rails → spec/rails}/example/shared_behaviour_spec.rb +1 -1
  106. data/spec/{rails → spec/rails}/example/test_unit_assertion_accessibility_spec.rb +1 -1
  107. data/spec/{rails → spec/rails}/example/view_spec_spec.rb +22 -1
  108. data/spec/{rails → spec/rails}/extensions/action_controller_rescue_action_spec.rb +4 -1
  109. data/spec/{rails → spec/rails}/extensions/action_view_base_spec.rb +1 -1
  110. data/spec/{rails → spec/rails}/extensions/active_record_spec.rb +1 -1
  111. data/spec/{rails → spec/rails}/interop/testcase_spec.rb +6 -2
  112. data/spec/spec/rails/matchers/ar_be_valid_spec.rb +35 -0
  113. data/spec/{rails → spec/rails}/matchers/assert_select_spec.rb +1 -5
  114. data/spec/{rails → spec/rails}/matchers/errors_on_spec.rb +1 -1
  115. data/spec/{rails → spec/rails}/matchers/have_text_spec.rb +1 -1
  116. data/spec/{rails → spec/rails}/matchers/include_text_spec.rb +1 -1
  117. data/spec/{rails → spec/rails}/matchers/redirect_to_spec.rb +11 -2
  118. data/spec/{rails → spec/rails}/matchers/render_template_spec.rb +8 -4
  119. data/spec/{rails → spec/rails}/matchers/should_change_spec.rb +1 -1
  120. data/spec/{rails → spec/rails}/mocks/ar_classes.rb +0 -0
  121. data/spec/{rails → spec/rails}/mocks/mock_model_spec.rb +1 -1
  122. data/spec/{rails → spec/rails}/mocks/stub_model_spec.rb +1 -1
  123. data/spec/{rails → spec/rails}/sample_modified_fixture.rb +1 -1
  124. data/spec/{rails → spec/rails}/sample_spec.rb +1 -1
  125. data/spec/spec/rails/spec_server_spec.rb +96 -0
  126. data/spec/{rails → spec/rails}/spec_spec.rb +1 -1
  127. data/spec/spec_helper.rb +23 -14
  128. metadata +111 -100
  129. data/UPGRADE +0 -7
  130. data/generators/rspec/templates/all_stories.rb +0 -4
  131. data/generators/rspec/templates/stories_helper.rb +0 -3
  132. data/lib/spec/rails/extensions/object.rb +0 -5
  133. data/spec/rails/example/configuration_spec.rb +0 -83
  134. data/spec/rails/matchers/description_generation_spec.rb +0 -37
  135. data/spec/rails/spec_server_spec.rb +0 -96
  136. data/stories/all.rb +0 -10
  137. data/stories/configuration/stories.rb +0 -5
  138. data/stories/helper.rb +0 -6
  139. data/stories/steps/people.rb +0 -8
  140. data/stories/transactions_should_rollback.rb +0 -25
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.11
4
+ version: 1.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - RSpec Development Team
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-10-24 00:00:00 -05:00
12
+ date: 2009-01-11 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -20,7 +20,17 @@ dependencies:
20
20
  requirements:
21
21
  - - "="
22
22
  - !ruby/object:Gem::Version
23
- version: 1.1.11
23
+ version: 1.1.12
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: cucumber
27
+ type: :development
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 0.1.13
24
34
  version:
25
35
  - !ruby/object:Gem::Dependency
26
36
  name: hoe
@@ -30,7 +40,7 @@ dependencies:
30
40
  requirements:
31
41
  - - ">="
32
42
  - !ruby/object:Gem::Version
33
- version: 1.8.1
43
+ version: 1.8.2
34
44
  version:
35
45
  description: Behaviour Driven Development for Ruby on Rails.
36
46
  email:
@@ -44,6 +54,7 @@ extra_rdoc_files:
44
54
  - License.txt
45
55
  - Manifest.txt
46
56
  - README.txt
57
+ - TODO.txt
47
58
  - generators/rspec/templates/previous_failures.txt
48
59
  files:
49
60
  - History.txt
@@ -51,10 +62,12 @@ files:
51
62
  - Manifest.txt
52
63
  - README.txt
53
64
  - Rakefile
54
- - UPGRADE
65
+ - TODO.txt
66
+ - features/step_definitions/people.rb
67
+ - features/support/env.rb
68
+ - features/transactions/transactions_should_rollback.feature
55
69
  - generators/rspec/CHANGES
56
70
  - generators/rspec/rspec_generator.rb
57
- - generators/rspec/templates/all_stories.rb
58
71
  - generators/rspec/templates/previous_failures.txt
59
72
  - generators/rspec/templates/rcov.opts
60
73
  - generators/rspec/templates/rspec.rake
@@ -63,7 +76,6 @@ files:
63
76
  - generators/rspec/templates/script/spec_server
64
77
  - generators/rspec/templates/spec.opts
65
78
  - generators/rspec/templates/spec_helper.rb
66
- - generators/rspec/templates/stories_helper.rb
67
79
  - generators/rspec_controller/USAGE
68
80
  - generators/rspec_controller/rspec_controller_generator.rb
69
81
  - generators/rspec_controller/templates/controller_spec.rb
@@ -101,11 +113,11 @@ files:
101
113
  - lib/spec/rails/extensions/action_controller/test_response.rb
102
114
  - lib/spec/rails/extensions/action_view/base.rb
103
115
  - lib/spec/rails/extensions/active_record/base.rb
104
- - lib/spec/rails/extensions/object.rb
105
- - lib/spec/rails/extensions/spec/example/configuration.rb
106
116
  - lib/spec/rails/extensions/spec/matchers/have.rb
117
+ - lib/spec/rails/extensions/spec/runner/configuration.rb
107
118
  - lib/spec/rails/interop/testcase.rb
108
119
  - lib/spec/rails/matchers.rb
120
+ - lib/spec/rails/matchers/ar_be_valid.rb
109
121
  - lib/spec/rails/matchers/assert_select.rb
110
122
  - lib/spec/rails/matchers/change.rb
111
123
  - lib/spec/rails/matchers/have_text.rb
@@ -116,97 +128,96 @@ files:
116
128
  - lib/spec/rails/story_adapter.rb
117
129
  - lib/spec/rails/version.rb
118
130
  - rspec-rails.gemspec
119
- - spec/rails/autotest/mappings_spec.rb
120
- - spec/rails/example/assigns_hash_proxy_spec.rb
121
- - spec/rails/example/configuration_spec.rb
122
- - spec/rails/example/controller_isolation_spec.rb
123
- - spec/rails/example/controller_spec_spec.rb
124
- - spec/rails/example/cookies_proxy_spec.rb
125
- - spec/rails/example/example_group_factory_spec.rb
126
- - spec/rails/example/helper_spec_spec.rb
127
- - spec/rails/example/model_spec_spec.rb
128
- - spec/rails/example/shared_behaviour_spec.rb
129
- - spec/rails/example/test_unit_assertion_accessibility_spec.rb
130
- - spec/rails/example/view_spec_spec.rb
131
- - spec/rails/extensions/action_controller_rescue_action_spec.rb
132
- - spec/rails/extensions/action_view_base_spec.rb
133
- - spec/rails/extensions/active_record_spec.rb
134
- - spec/rails/interop/testcase_spec.rb
135
- - spec/rails/matchers/assert_select_spec.rb
136
- - spec/rails/matchers/description_generation_spec.rb
137
- - spec/rails/matchers/errors_on_spec.rb
138
- - spec/rails/matchers/have_text_spec.rb
139
- - spec/rails/matchers/include_text_spec.rb
140
- - spec/rails/matchers/redirect_to_spec.rb
141
- - spec/rails/matchers/render_template_spec.rb
142
- - spec/rails/matchers/should_change_spec.rb
143
- - spec/rails/mocks/ar_classes.rb
144
- - spec/rails/mocks/mock_model_spec.rb
145
- - spec/rails/mocks/stub_model_spec.rb
146
- - spec/rails/sample_modified_fixture.rb
147
- - spec/rails/sample_spec.rb
148
- - spec/rails/spec_server_spec.rb
149
- - spec/rails/spec_spec.rb
131
+ - spec/autotest/mappings_spec.rb
150
132
  - spec/rails_suite.rb
133
+ - spec/resources/controllers/action_view_base_spec_controller.rb
134
+ - spec/resources/controllers/application.rb
135
+ - spec/resources/controllers/controller_spec_controller.rb
136
+ - spec/resources/controllers/redirect_spec_controller.rb
137
+ - spec/resources/controllers/render_spec_controller.rb
138
+ - spec/resources/controllers/rjs_spec_controller.rb
139
+ - spec/resources/helpers/addition_helper.rb
140
+ - spec/resources/helpers/explicit_helper.rb
141
+ - spec/resources/helpers/more_explicit_helper.rb
142
+ - spec/resources/helpers/plugin_application_helper.rb
143
+ - spec/resources/helpers/view_spec_helper.rb
144
+ - spec/resources/models/animal.rb
145
+ - spec/resources/models/person.rb
146
+ - spec/resources/models/thing.rb
147
+ - spec/resources/views/controller_spec/_partial.rhtml
148
+ - spec/resources/views/controller_spec/action_setting_flash_after_session_reset.rhtml
149
+ - spec/resources/views/controller_spec/action_setting_flash_before_session_reset.rhtml
150
+ - spec/resources/views/controller_spec/action_setting_the_assigns_hash.rhtml
151
+ - spec/resources/views/controller_spec/action_with_errors_in_template.rhtml
152
+ - spec/resources/views/controller_spec/action_with_template.rhtml
153
+ - spec/resources/views/layouts/application.rhtml
154
+ - spec/resources/views/layouts/simple.rhtml
155
+ - spec/resources/views/objects/_object.html.erb
156
+ - spec/resources/views/render_spec/_a_partial.rhtml
157
+ - spec/resources/views/render_spec/action_with_alternate_layout.rhtml
158
+ - spec/resources/views/render_spec/some_action.html.erb
159
+ - spec/resources/views/render_spec/some_action.js.rjs
160
+ - spec/resources/views/render_spec/some_action.rjs
161
+ - spec/resources/views/rjs_spec/_replacement_partial.rhtml
162
+ - spec/resources/views/rjs_spec/hide_div.rjs
163
+ - spec/resources/views/rjs_spec/hide_page_element.rjs
164
+ - spec/resources/views/rjs_spec/insert_html.rjs
165
+ - spec/resources/views/rjs_spec/replace.rjs
166
+ - spec/resources/views/rjs_spec/replace_html.rjs
167
+ - spec/resources/views/rjs_spec/replace_html_with_partial.rjs
168
+ - spec/resources/views/rjs_spec/visual_effect.rjs
169
+ - spec/resources/views/rjs_spec/visual_toggle_effect.rjs
170
+ - spec/resources/views/tag_spec/no_tags.rhtml
171
+ - spec/resources/views/tag_spec/single_div_with_no_attributes.rhtml
172
+ - spec/resources/views/tag_spec/single_div_with_one_attribute.rhtml
173
+ - spec/resources/views/view_spec/_partial.rhtml
174
+ - spec/resources/views/view_spec/_partial_used_twice.rhtml
175
+ - spec/resources/views/view_spec/_partial_with_local_variable.rhtml
176
+ - spec/resources/views/view_spec/_partial_with_sub_partial.rhtml
177
+ - spec/resources/views/view_spec/_spacer.rhtml
178
+ - spec/resources/views/view_spec/accessor.rhtml
179
+ - spec/resources/views/view_spec/block_helper.rhtml
180
+ - spec/resources/views/view_spec/entry_form.rhtml
181
+ - spec/resources/views/view_spec/explicit_helper.rhtml
182
+ - spec/resources/views/view_spec/foo/show.rhtml
183
+ - spec/resources/views/view_spec/implicit_helper.rhtml
184
+ - spec/resources/views/view_spec/multiple_helpers.rhtml
185
+ - spec/resources/views/view_spec/path_params.html.erb
186
+ - spec/resources/views/view_spec/should_not_receive.rhtml
187
+ - spec/resources/views/view_spec/template_with_partial.rhtml
188
+ - spec/resources/views/view_spec/template_with_partial_using_collection.rhtml
189
+ - spec/resources/views/view_spec/template_with_partial_with_array.rhtml
190
+ - spec/spec/rails/example/assigns_hash_proxy_spec.rb
191
+ - spec/spec/rails/example/configuration_spec.rb
192
+ - spec/spec/rails/example/controller_isolation_spec.rb
193
+ - spec/spec/rails/example/controller_spec_spec.rb
194
+ - spec/spec/rails/example/cookies_proxy_spec.rb
195
+ - spec/spec/rails/example/example_group_factory_spec.rb
196
+ - spec/spec/rails/example/helper_spec_spec.rb
197
+ - spec/spec/rails/example/model_spec_spec.rb
198
+ - spec/spec/rails/example/shared_behaviour_spec.rb
199
+ - spec/spec/rails/example/test_unit_assertion_accessibility_spec.rb
200
+ - spec/spec/rails/example/view_spec_spec.rb
201
+ - spec/spec/rails/extensions/action_controller_rescue_action_spec.rb
202
+ - spec/spec/rails/extensions/action_view_base_spec.rb
203
+ - spec/spec/rails/extensions/active_record_spec.rb
204
+ - spec/spec/rails/interop/testcase_spec.rb
205
+ - spec/spec/rails/matchers/ar_be_valid_spec.rb
206
+ - spec/spec/rails/matchers/assert_select_spec.rb
207
+ - spec/spec/rails/matchers/errors_on_spec.rb
208
+ - spec/spec/rails/matchers/have_text_spec.rb
209
+ - spec/spec/rails/matchers/include_text_spec.rb
210
+ - spec/spec/rails/matchers/redirect_to_spec.rb
211
+ - spec/spec/rails/matchers/render_template_spec.rb
212
+ - spec/spec/rails/matchers/should_change_spec.rb
213
+ - spec/spec/rails/mocks/ar_classes.rb
214
+ - spec/spec/rails/mocks/mock_model_spec.rb
215
+ - spec/spec/rails/mocks/stub_model_spec.rb
216
+ - spec/spec/rails/sample_modified_fixture.rb
217
+ - spec/spec/rails/sample_spec.rb
218
+ - spec/spec/rails/spec_server_spec.rb
219
+ - spec/spec/rails/spec_spec.rb
151
220
  - spec/spec_helper.rb
152
- - spec_resources/controllers/action_view_base_spec_controller.rb
153
- - spec_resources/controllers/controller_spec_controller.rb
154
- - spec_resources/controllers/redirect_spec_controller.rb
155
- - spec_resources/controllers/render_spec_controller.rb
156
- - spec_resources/controllers/rjs_spec_controller.rb
157
- - spec_resources/helpers/addition_helper.rb
158
- - spec_resources/helpers/explicit_helper.rb
159
- - spec_resources/helpers/more_explicit_helper.rb
160
- - spec_resources/helpers/plugin_application_helper.rb
161
- - spec_resources/helpers/view_spec_helper.rb
162
- - spec_resources/views/controller_spec/_partial.rhtml
163
- - spec_resources/views/controller_spec/action_setting_flash_after_session_reset.rhtml
164
- - spec_resources/views/controller_spec/action_setting_flash_before_session_reset.rhtml
165
- - spec_resources/views/controller_spec/action_setting_the_assigns_hash.rhtml
166
- - spec_resources/views/controller_spec/action_with_errors_in_template.rhtml
167
- - spec_resources/views/controller_spec/action_with_template.rhtml
168
- - spec_resources/views/layouts/application.rhtml
169
- - spec_resources/views/layouts/simple.rhtml
170
- - spec_resources/views/objects/_object.html.erb
171
- - spec_resources/views/render_spec/_a_partial.rhtml
172
- - spec_resources/views/render_spec/action_with_alternate_layout.rhtml
173
- - spec_resources/views/render_spec/some_action.js.rjs
174
- - spec_resources/views/render_spec/some_action.rhtml
175
- - spec_resources/views/render_spec/some_action.rjs
176
- - spec_resources/views/rjs_spec/_replacement_partial.rhtml
177
- - spec_resources/views/rjs_spec/hide_div.rjs
178
- - spec_resources/views/rjs_spec/hide_page_element.rjs
179
- - spec_resources/views/rjs_spec/insert_html.rjs
180
- - spec_resources/views/rjs_spec/replace.rjs
181
- - spec_resources/views/rjs_spec/replace_html.rjs
182
- - spec_resources/views/rjs_spec/replace_html_with_partial.rjs
183
- - spec_resources/views/rjs_spec/visual_effect.rjs
184
- - spec_resources/views/rjs_spec/visual_toggle_effect.rjs
185
- - spec_resources/views/tag_spec/no_tags.rhtml
186
- - spec_resources/views/tag_spec/single_div_with_no_attributes.rhtml
187
- - spec_resources/views/tag_spec/single_div_with_one_attribute.rhtml
188
- - spec_resources/views/view_spec/_partial.rhtml
189
- - spec_resources/views/view_spec/_partial_used_twice.rhtml
190
- - spec_resources/views/view_spec/_partial_with_local_variable.rhtml
191
- - spec_resources/views/view_spec/_partial_with_sub_partial.rhtml
192
- - spec_resources/views/view_spec/_spacer.rhtml
193
- - spec_resources/views/view_spec/accessor.rhtml
194
- - spec_resources/views/view_spec/block_helper.rhtml
195
- - spec_resources/views/view_spec/entry_form.rhtml
196
- - spec_resources/views/view_spec/explicit_helper.rhtml
197
- - spec_resources/views/view_spec/foo/show.rhtml
198
- - spec_resources/views/view_spec/implicit_helper.rhtml
199
- - spec_resources/views/view_spec/multiple_helpers.rhtml
200
- - spec_resources/views/view_spec/should_not_receive.rhtml
201
- - spec_resources/views/view_spec/template_with_partial.rhtml
202
- - spec_resources/views/view_spec/template_with_partial_using_collection.rhtml
203
- - spec_resources/views/view_spec/template_with_partial_with_array.rhtml
204
- - stories/all.rb
205
- - stories/configuration/stories.rb
206
- - stories/helper.rb
207
- - stories/steps/people.rb
208
- - stories/transactions_should_rollback
209
- - stories/transactions_should_rollback.rb
210
221
  has_rdoc: true
211
222
  homepage: http://rspec.info/
212
223
  post_install_message:
@@ -230,9 +241,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
230
241
  requirements: []
231
242
 
232
243
  rubyforge_project: rspec
233
- rubygems_version: 1.3.0
244
+ rubygems_version: 1.3.1
234
245
  signing_key:
235
246
  specification_version: 2
236
- summary: rspec-rails 1.1.11
247
+ summary: rspec-rails 1.1.12
237
248
  test_files: []
238
249
 
data/UPGRADE DELETED
@@ -1,7 +0,0 @@
1
- == Upgrade
2
-
3
- script/generate rspec
4
-
5
- Or modify spec_helper.rb based on the template, which can be found at:
6
-
7
- vendor/plugins/rspec-rails/generators/rspec/templates/spec_helper.rb
@@ -1,4 +0,0 @@
1
- dir = File.dirname(__FILE__)
2
- Dir[File.expand_path("#{dir}/**/*.rb")].uniq.each do |file|
3
- require file
4
- end
@@ -1,3 +0,0 @@
1
- ENV["RAILS_ENV"] = "test"
2
- require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
3
- require 'spec/rails/story_adapter'
@@ -1,5 +0,0 @@
1
- class Object # :nodoc:
2
- def self.path2class(klassname)
3
- klassname.split('::').inject(Object) { |k,n| k.const_get n }
4
- end
5
- end
@@ -1,83 +0,0 @@
1
- require File.dirname(__FILE__) + '/../../spec_helper'
2
-
3
- module Spec
4
- module Example
5
- describe Configuration, :shared => true do
6
- before(:each) { @config = Configuration.new }
7
- end
8
-
9
- describe Configuration, "#use_transactional_fixtures" do
10
- it_should_behave_like "Spec::Example::Configuration"
11
-
12
- it "should return Test::Unit::TestCase.use_transactional_fixtures" do
13
- @config.use_transactional_fixtures.should == Test::Unit::TestCase.use_transactional_fixtures
14
- end
15
-
16
- it "should set Test::Unit::TestCase.use_transactional_fixtures to false" do
17
- Configuration::EXAMPLE_GROUP_CLASSES.each do |example_group|
18
- example_group.should_receive(:use_transactional_fixtures=).with(false)
19
- end
20
- @config.use_transactional_fixtures = false
21
- end
22
-
23
- it "should set Test::Unit::TestCase.use_transactional_fixtures to true" do
24
- Configuration::EXAMPLE_GROUP_CLASSES.each do |example_group|
25
- example_group.should_receive(:use_transactional_fixtures=).with(true)
26
- end
27
- @config.use_transactional_fixtures = true
28
- end
29
- end
30
-
31
- describe Configuration, "#use_instantiated_fixtures" do
32
- it_should_behave_like "Spec::Example::Configuration"
33
-
34
- it "should return Test::Unit::TestCase.use_transactional_fixtures" do
35
- @config.use_instantiated_fixtures.should == Test::Unit::TestCase.use_instantiated_fixtures
36
- end
37
-
38
- it "should set Test::Unit::TestCase.use_instantiated_fixtures to false" do
39
- Configuration::EXAMPLE_GROUP_CLASSES.each do |example_group|
40
- example_group.should_receive(:use_instantiated_fixtures=).with(false)
41
- end
42
- @config.use_instantiated_fixtures = false
43
- end
44
-
45
- it "should set Test::Unit::TestCase.use_instantiated_fixtures to true" do
46
- Configuration::EXAMPLE_GROUP_CLASSES.each do |example_group|
47
- example_group.should_receive(:use_instantiated_fixtures=).with(true)
48
- end
49
- @config.use_instantiated_fixtures = true
50
- end
51
- end
52
-
53
- describe Configuration, "#fixture_path" do
54
- it_should_behave_like "Spec::Example::Configuration"
55
-
56
- it "should default to RAILS_ROOT + '/spec/fixtures'" do
57
- @config.fixture_path.should == RAILS_ROOT + '/spec/fixtures'
58
- Configuration::EXAMPLE_GROUP_CLASSES.each do |example_group|
59
- example_group.fixture_path.should == RAILS_ROOT + '/spec/fixtures'
60
- end
61
- end
62
-
63
- it "should set fixture_path" do
64
- @config.fixture_path = "/new/path"
65
- @config.fixture_path.should == "/new/path"
66
- Configuration::EXAMPLE_GROUP_CLASSES.each do |example_group|
67
- example_group.fixture_path.should == "/new/path"
68
- end
69
- end
70
- end
71
-
72
- describe Configuration, "#global_fixtures" do
73
- it_should_behave_like "Spec::Example::Configuration"
74
-
75
- it "should set fixtures on TestCase" do
76
- Configuration::EXAMPLE_GROUP_CLASSES.each do |example_group|
77
- example_group.should_receive(:fixtures).with(:blah)
78
- end
79
- @config.global_fixtures = [:blah]
80
- end
81
- end
82
- end
83
- end
@@ -1,37 +0,0 @@
1
- require File.dirname(__FILE__) + '/../../spec_helper'
2
-
3
- class DescriptionGenerationSpecController < ActionController::Base
4
- def render_action
5
- end
6
-
7
- def redirect_action
8
- redirect_to :action => :render_action
9
- end
10
- end
11
-
12
- describe "Description generation", :type => :controller do
13
- controller_name :description_generation_spec
14
-
15
- after(:each) do
16
- Spec::Matchers.clear_generated_description
17
- end
18
-
19
- it "should generate description for render_template" do
20
- get 'render_action'
21
- response.should render_template("render_action")
22
- Spec::Matchers.generated_description.should == "should render template \"render_action\""
23
- end
24
-
25
- it "should generate description for render_template with full path" do
26
- get 'render_action'
27
- response.should render_template("description_generation_spec/render_action")
28
- Spec::Matchers.generated_description.should == "should render template \"description_generation_spec/render_action\""
29
- end
30
-
31
- it "should generate description for redirect_to" do
32
- get 'redirect_action'
33
- response.should redirect_to("http://test.host/description_generation_spec/render_action")
34
- Spec::Matchers.generated_description.should == "should redirect to \"http://test.host/description_generation_spec/render_action\""
35
- end
36
-
37
- end
@@ -1,96 +0,0 @@
1
- # require File.dirname(__FILE__) + '/../spec_helper'
2
- #
3
- # describe "script/spec_server file", :shared => true do
4
- # attr_accessor :tmbundle_install_directory
5
- # attr_reader :animals_yml_path, :original_animals_content
6
- #
7
- # before do
8
- # @animals_yml_path = File.expand_path("#{RAILS_ROOT}/spec/fixtures/animals.yml")
9
- # @original_animals_content = File.read(animals_yml_path)
10
- # end
11
- #
12
- # after do
13
- # File.open(animals_yml_path, "w") do |f|
14
- # f.write original_animals_content
15
- # end
16
- # end
17
- #
18
- # after(:each) do
19
- # system "lsof -i tcp:8989 | sed /COMMAND/d | awk '{print $2}' | xargs kill"
20
- # end
21
- #
22
- # it "runs a spec" do
23
- # dir = File.dirname(__FILE__)
24
- # output = ""
25
- # Timeout.timeout(10) do
26
- # loop do
27
- # output = `#{RAILS_ROOT}/script/spec #{dir}/sample_spec.rb --drb 2>&1`
28
- # break unless output.include?("No server is running")
29
- # end
30
- # end
31
- #
32
- # if $?.exitstatus != 0 || output !~ /0 failures/
33
- # flunk "command 'script/spec spec/sample_spec' failed\n#{output}"
34
- # end
35
- #
36
- # fixtures = YAML.load(@original_animals_content)
37
- # fixtures['pig']['name'] = "Piggy"
38
- #
39
- # File.open(animals_yml_path, "w") do |f|
40
- # f.write YAML.dump(fixtures)
41
- # end
42
- #
43
- # Timeout.timeout(10) do
44
- # loop do
45
- # output = `#{RAILS_ROOT}/script/spec #{dir}/sample_modified_fixture.rb --drb 2>&1`
46
- # break unless output.include?("No server is running")
47
- # end
48
- # end
49
- #
50
- # if $?.exitstatus != 0 || output !~ /0 failures/
51
- # flunk "command 'script/spec spec/sample_modified_fixture' failed\n#{output}"
52
- # end
53
- # end
54
- #
55
- # def start_spec_server
56
- # dir = File.dirname(__FILE__)
57
- # Thread.start do
58
- # system "cd #{RAILS_ROOT}; script/spec_server"
59
- # end
60
- #
61
- # file_content = ""
62
- # end
63
- # end
64
- #
65
- # describe "script/spec_server file without TextMate bundle" do
66
- # it_should_behave_like "script/spec_server file"
67
- # before(:each) do
68
- # start_spec_server
69
- # end
70
- # end
71
- #
72
- # describe "script/spec_server file with TextMate bundle" do
73
- # it_should_behave_like "script/spec_server file"
74
- # before(:each) do
75
- # dir = File.dirname(__FILE__)
76
- # @tmbundle_install_directory = File.expand_path("#{Dir.tmpdir}/Library/Application Support/TextMate/Bundles")
77
- # @bundle_name = "RSpec.tmbundle"
78
- # FileUtils.mkdir_p(tmbundle_install_directory)
79
- # bundle_dir = File.expand_path("#{dir}/../../../../../../#{@bundle_name}")
80
- # File.directory?(bundle_dir).should be_true
81
- # unless system(%Q|ln -s #{bundle_dir} "#{tmbundle_install_directory}"|)
82
- # raise "Creating link to Textmate Bundle"
83
- # end
84
- # start_spec_server
85
- # end
86
- #
87
- # after(:each) do
88
- # bundle_file_to_remove = "#{tmbundle_install_directory}/#{@bundle_name}"
89
- # if bundle_file_to_remove == "/"
90
- # raise "bundle file path resolved to '/' - could not call rm"
91
- # end
92
- # unless system(%Q|rm "#{bundle_file_to_remove}"|)
93
- # raise "Removing Textmate bundle link failed"
94
- # end
95
- # end
96
- # end