rspec_for_generators 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. data/.document +5 -0
  2. data/.gitignore +21 -0
  3. data/LICENSE +20 -0
  4. data/README.markdown +111 -0
  5. data/Rakefile +48 -0
  6. data/VERSION +1 -0
  7. data/lib/generators/demo/demo_generator.rb +91 -0
  8. data/lib/rspec_for_generators.rb +11 -0
  9. data/lib/rspec_for_generators/fixtures/routes.rb +2 -0
  10. data/lib/rspec_for_generators/generator_spec_helper.rb +73 -0
  11. data/lib/rspec_for_generators/main.rb +7 -0
  12. data/lib/rspec_for_generators/matchers/content/all.rb +1 -0
  13. data/lib/rspec_for_generators/matchers/content/have_class.rb +36 -0
  14. data/lib/rspec_for_generators/matchers/content/have_method.rb +49 -0
  15. data/lib/rspec_for_generators/matchers/content/have_module.rb +34 -0
  16. data/lib/rspec_for_generators/matchers/content/include_module.rb +36 -0
  17. data/lib/rspec_for_generators/matchers/content/inherit_from.rb +33 -0
  18. data/lib/rspec_for_generators/matchers/file/all.rb +1 -0
  19. data/lib/rspec_for_generators/matchers/file/generate_file.rb +73 -0
  20. data/lib/rspec_for_generators/matchers/file/generate_migration.rb +43 -0
  21. data/lib/rspec_for_generators/matchers/helpers/content.rb +20 -0
  22. data/lib/rspec_for_generators/matchers/helpers/file.rb +28 -0
  23. data/lib/rspec_for_generators/rails_helpers/all.rb +6 -0
  24. data/lib/rspec_for_generators/rails_helpers/rails_app.rb +55 -0
  25. data/lib/rspec_for_generators/rails_helpers/rails_controller.rb +34 -0
  26. data/lib/rspec_for_generators/rails_helpers/rails_helper.rb +36 -0
  27. data/lib/rspec_for_generators/rails_helpers/rails_mailer.rb +29 -0
  28. data/lib/rspec_for_generators/rails_helpers/rails_model.rb +94 -0
  29. data/lib/rspec_for_generators/rails_helpers/rails_view.rb +29 -0
  30. data/lib/rspec_for_generators/rails_spec_helper.rb +17 -0
  31. data/lib/rspec_for_generators/rspec_test_case.rb +26 -0
  32. data/rspec_for_generators.gemspec +96 -0
  33. data/spec/rspec_for_generators/rspec_for_generators_spec.rb +43 -0
  34. data/spec/spec.opts +1 -0
  35. data/spec/spec_helper.rb +10 -0
  36. data/tmp/rails/config/routes.rb +2 -0
  37. data/wiki/Custom Rails 3 Generators.textile +110 -0
  38. metadata +195 -0
metadata ADDED
@@ -0,0 +1,195 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rspec_for_generators
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 2
8
+ - 0
9
+ version: 0.2.0
10
+ platform: ruby
11
+ authors:
12
+ - Kristian Mandrup
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2010-08-03 00:00:00 +02:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: rspec
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ segments:
29
+ - 2
30
+ - 0
31
+ - 0
32
+ - beta19
33
+ version: 2.0.0.beta19
34
+ type: :development
35
+ version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
37
+ name: rspec
38
+ prerelease: false
39
+ requirement: &id002 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ segments:
45
+ - 2
46
+ - 0
47
+ - 0
48
+ - beta
49
+ - 19
50
+ version: 2.0.0.beta.19
51
+ type: :runtime
52
+ version_requirements: *id002
53
+ - !ruby/object:Gem::Dependency
54
+ name: rake
55
+ prerelease: false
56
+ requirement: &id003 !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ segments:
62
+ - 0
63
+ - 8
64
+ - 7
65
+ version: 0.8.7
66
+ type: :runtime
67
+ version_requirements: *id003
68
+ - !ruby/object:Gem::Dependency
69
+ name: rails
70
+ prerelease: false
71
+ requirement: &id004 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ segments:
77
+ - 3
78
+ - 0
79
+ - 0
80
+ - rc
81
+ version: 3.0.0.rc
82
+ type: :runtime
83
+ version_requirements: *id004
84
+ - !ruby/object:Gem::Dependency
85
+ name: test-unit
86
+ prerelease: false
87
+ requirement: &id005 !ruby/object:Gem::Requirement
88
+ none: false
89
+ requirements:
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ segments:
93
+ - 2
94
+ - 0
95
+ - 9
96
+ version: 2.0.9
97
+ type: :runtime
98
+ version_requirements: *id005
99
+ - !ruby/object:Gem::Dependency
100
+ name: require_all
101
+ prerelease: false
102
+ requirement: &id006 !ruby/object:Gem::Requirement
103
+ none: false
104
+ requirements:
105
+ - - ">="
106
+ - !ruby/object:Gem::Version
107
+ segments:
108
+ - 1
109
+ - 1
110
+ - 0
111
+ version: 1.1.0
112
+ type: :runtime
113
+ version_requirements: *id006
114
+ description: RSpec 2 matchers, helpers and utils to assist in writing generator specs
115
+ email: kmandrup@gmail.com
116
+ executables: []
117
+
118
+ extensions: []
119
+
120
+ extra_rdoc_files:
121
+ - LICENSE
122
+ - README.markdown
123
+ files:
124
+ - .document
125
+ - .gitignore
126
+ - LICENSE
127
+ - README.markdown
128
+ - Rakefile
129
+ - VERSION
130
+ - lib/generators/demo/demo_generator.rb
131
+ - lib/rspec_for_generators.rb
132
+ - lib/rspec_for_generators/fixtures/routes.rb
133
+ - lib/rspec_for_generators/generator_spec_helper.rb
134
+ - lib/rspec_for_generators/main.rb
135
+ - lib/rspec_for_generators/matchers/content/all.rb
136
+ - lib/rspec_for_generators/matchers/content/have_class.rb
137
+ - lib/rspec_for_generators/matchers/content/have_method.rb
138
+ - lib/rspec_for_generators/matchers/content/have_module.rb
139
+ - lib/rspec_for_generators/matchers/content/include_module.rb
140
+ - lib/rspec_for_generators/matchers/content/inherit_from.rb
141
+ - lib/rspec_for_generators/matchers/file/all.rb
142
+ - lib/rspec_for_generators/matchers/file/generate_file.rb
143
+ - lib/rspec_for_generators/matchers/file/generate_migration.rb
144
+ - lib/rspec_for_generators/matchers/helpers/content.rb
145
+ - lib/rspec_for_generators/matchers/helpers/file.rb
146
+ - lib/rspec_for_generators/rails_helpers/all.rb
147
+ - lib/rspec_for_generators/rails_helpers/rails_app.rb
148
+ - lib/rspec_for_generators/rails_helpers/rails_controller.rb
149
+ - lib/rspec_for_generators/rails_helpers/rails_helper.rb
150
+ - lib/rspec_for_generators/rails_helpers/rails_mailer.rb
151
+ - lib/rspec_for_generators/rails_helpers/rails_model.rb
152
+ - lib/rspec_for_generators/rails_helpers/rails_view.rb
153
+ - lib/rspec_for_generators/rails_spec_helper.rb
154
+ - lib/rspec_for_generators/rspec_test_case.rb
155
+ - rspec_for_generators.gemspec
156
+ - spec/rspec_for_generators/rspec_for_generators_spec.rb
157
+ - spec/spec.opts
158
+ - spec/spec_helper.rb
159
+ - tmp/rails/config/routes.rb
160
+ - wiki/Custom Rails 3 Generators.textile
161
+ has_rdoc: true
162
+ homepage: http://github.com/kristianmandrup/rspec_for_generators
163
+ licenses: []
164
+
165
+ post_install_message:
166
+ rdoc_options:
167
+ - --charset=UTF-8
168
+ require_paths:
169
+ - lib
170
+ required_ruby_version: !ruby/object:Gem::Requirement
171
+ none: false
172
+ requirements:
173
+ - - ">="
174
+ - !ruby/object:Gem::Version
175
+ segments:
176
+ - 0
177
+ version: "0"
178
+ required_rubygems_version: !ruby/object:Gem::Requirement
179
+ none: false
180
+ requirements:
181
+ - - ">="
182
+ - !ruby/object:Gem::Version
183
+ segments:
184
+ - 0
185
+ version: "0"
186
+ requirements: []
187
+
188
+ rubyforge_project:
189
+ rubygems_version: 1.3.7
190
+ signing_key:
191
+ specification_version: 3
192
+ summary: RSpec 2 matchers, helpers and utils for writing generator specs
193
+ test_files:
194
+ - spec/rspec_for_generators/rspec_for_generators_spec.rb
195
+ - spec/spec_helper.rb