generator-spec 0.5.0 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. data/.document +0 -0
  2. data/.gitignore +0 -0
  3. data/.rspec +0 -0
  4. data/LICENSE +0 -0
  5. data/README.markdown +19 -13
  6. data/Rakefile +14 -35
  7. data/VERSION +1 -1
  8. data/generator-spec.gemspec +63 -148
  9. data/lib/generator-spec.rb +12 -0
  10. data/lib/generator-spec/namespaces.rb +7 -0
  11. data/lib/{generator_spec/helpers/configure_rails.rb → generator-spec/rails/configure.rb} +3 -3
  12. data/lib/generator-spec/rspec.rb +1 -0
  13. data/lib/generator-spec/rspec/configure.rb +6 -0
  14. data/lib/{generator_spec/rspec_generator/generator_util.rb → generator-spec/rspec/generator.rb} +6 -6
  15. data/lib/{generator_spec/rspec_generator → generator-spec/rspec/generator}/configure.rb +0 -0
  16. data/lib/{generator_spec/require_generator.rb → generator-spec/rspec/generator/require.rb} +0 -0
  17. data/lib/{generator_spec/rspec_generator → generator-spec/rspec/generator}/routes.rb +0 -0
  18. data/lib/{generator_spec/rspec_generator → generator-spec/rspec/generator}/test_case.rb +0 -0
  19. data/lib/generator-spec/rspec/macro.rb +18 -0
  20. data/lib/generator-spec/rspec/matchers/generate_artifact.rb +34 -0
  21. data/lib/generator-spec/rspec/matchers/generate_artifacts.rb +33 -0
  22. data/lib/generators/controller/controller_generator.rb +15 -21
  23. data/lib/generators/helper/helper_generator.rb +13 -29
  24. data/lib/generators/migration/migration_generator.rb +6 -7
  25. data/lib/generators/migration/templates/create_users.erb +0 -0
  26. data/lib/generators/model/model_generator.rb +36 -55
  27. data/lib/generators/observer/observer_generator.rb +2 -0
  28. data/lib/generators/view/view_generator.rb +2 -0
  29. data/spec/generator_spec/generators/controller_gen_spec.rb +40 -0
  30. data/spec/generator_spec/generators/{helper_generator_spec.rb → helper_gen_spec.rb} +4 -8
  31. data/spec/generator_spec/generators/{migration_generator_spec.rb → migration_gen_spec.rb} +3 -8
  32. data/spec/generator_spec/generators/model_gen_spec.rb +36 -0
  33. data/spec/generator_spec/generators/{observer_generator_spec.rb → observer_gen_spec.rb} +12 -21
  34. data/spec/generator_spec/generators/{view_generator_spec.rb → view_gen_spec.rb} +9 -20
  35. data/spec/generator_spec/matchers/generate_artifact_spec.rb +36 -0
  36. data/spec/generator_spec/matchers/generate_artifacts_spec.rb +35 -0
  37. data/spec/spec_helper.rb +5 -6
  38. data/wiki/Custom Rails 3 Generators.textile b/data/wiki/Custom Rails 3 → Generators.textile +0 -0
  39. data/wiki/content_matchers.textile +0 -0
  40. data/wiki/file_matchers.textile +0 -0
  41. data/wiki/migration_matchers.textile +0 -0
  42. data/wiki/rails_helpers.textile +0 -0
  43. metadata +117 -154
  44. data/lib/generator_spec.rb +0 -12
  45. data/lib/generator_spec/extensions/core_ext.rb +0 -47
  46. data/lib/generator_spec/helpers/generator_helper.rb +0 -11
  47. data/lib/generator_spec/helpers/migration_helper.rb +0 -69
  48. data/lib/generator_spec/main.rb +0 -77
  49. data/lib/generator_spec/matchers/content/content_matcher.rb +0 -110
  50. data/lib/generator_spec/matchers/content/have_block.rb +0 -57
  51. data/lib/generator_spec/matchers/content/have_call.rb +0 -59
  52. data/lib/generator_spec/matchers/content/have_calls.rb +0 -60
  53. data/lib/generator_spec/matchers/content/have_class_self.rb +0 -40
  54. data/lib/generator_spec/matchers/content/have_comment.rb +0 -42
  55. data/lib/generator_spec/matchers/content/have_method.rb +0 -66
  56. data/lib/generator_spec/matchers/content/have_module.rb +0 -66
  57. data/lib/generator_spec/matchers/content/have_region.rb +0 -48
  58. data/lib/generator_spec/matchers/content/have_subclass.rb +0 -50
  59. data/lib/generator_spec/matchers/content/include_module.rb +0 -51
  60. data/lib/generator_spec/matchers/content/inherit_from.rb +0 -40
  61. data/lib/generator_spec/matchers/file/generate_directory.rb +0 -73
  62. data/lib/generator_spec/matchers/file/generate_file.rb +0 -103
  63. data/lib/generator_spec/matchers/file/generate_migration.rb +0 -54
  64. data/lib/generator_spec/matchers/file/have_file.rb +0 -115
  65. data/lib/generator_spec/matchers/helpers/content.rb +0 -18
  66. data/lib/generator_spec/matchers/helpers/file.rb +0 -26
  67. data/lib/generator_spec/matchers/helpers/migration.rb +0 -89
  68. data/lib/generator_spec/matchers/migration/have_column.rb +0 -29
  69. data/lib/generator_spec/matchers/migration/have_index.rb +0 -9
  70. data/lib/generator_spec/matchers/migration/have_table.rb +0 -18
  71. data/lib/generator_spec/matchers/migration/have_tbl_column.rb +0 -25
  72. data/lib/generator_spec/matchers/migration/have_up_down.rb +0 -15
  73. data/lib/generator_spec/rails_helpers/base_helper.rb +0 -171
  74. data/lib/generator_spec/rails_helpers/rails_app.rb +0 -166
  75. data/lib/generator_spec/rails_helpers/rails_controller.rb +0 -44
  76. data/lib/generator_spec/rails_helpers/rails_helper.rb +0 -40
  77. data/lib/generator_spec/rails_helpers/rails_mailer.rb +0 -39
  78. data/lib/generator_spec/rails_helpers/rails_migration.rb +0 -51
  79. data/lib/generator_spec/rails_helpers/rails_model.rb +0 -40
  80. data/lib/generator_spec/rails_helpers/rails_observer.rb +0 -39
  81. data/lib/generator_spec/rails_helpers/rails_orm.rb +0 -114
  82. data/lib/generator_spec/rails_helpers/rails_view.rb +0 -65
  83. data/rspec_for_generators.gemspec +0 -96
  84. data/spec/generator_spec/generators/controller_generator_spec.rb +0 -47
  85. data/spec/generator_spec/generators/model_generator_spec.rb +0 -41
  86. data/spec/generator_spec/matchers/content/class_self_spec.rb +0 -30
  87. data/spec/generator_spec/matchers/content/have_block_spec.rb +0 -57
  88. data/spec/generator_spec/matchers/content/have_call_spec.rb +0 -55
  89. data/spec/generator_spec/matchers/content/have_calls_spec.rb +0 -47
  90. data/spec/generator_spec/matchers/content/have_class_spec.rb +0 -34
  91. data/spec/generator_spec/matchers/content/have_method_spec.rb +0 -52
  92. data/spec/generator_spec/matchers/content/have_module_spec.rb +0 -34
  93. data/spec/generator_spec/matchers/content/have_region_spec.rb +0 -56
  94. data/spec/generator_spec/matchers/content/have_subclass_spec.rb +0 -34
  95. data/spec/generator_spec/matchers/content/include_module_spec.rb +0 -36
  96. data/spec/generator_spec/matchers/content/inherit_from_spec.rb +0 -34
  97. data/spec/generator_spec/matchers/file/directory_spec.rb +0 -0
  98. data/spec/generator_spec/matchers/file/file_spec.rb +0 -0
  99. data/spec/generator_spec/matchers/file/migration_spec.rb +0 -0
  100. data/spec/generator_spec/matchers/migration/have_column_spec.rb +0 -0
  101. data/spec/generator_spec/matchers/migration/have_index_spec.rb +0 -0
  102. data/spec/generator_spec/matchers/migration/have_table_spec.rb +0 -0
  103. data/spec/generator_spec/matchers/migration/have_tbl_column_spec.rb +0 -0
  104. data/spec/generator_spec/matchers/migration/have_up_down_spec.rb +0 -0
  105. data/spec/generator_spec/matchers/rails/controller_matcher_spec.rb +0 -27
  106. data/spec/generator_spec/matchers/rails/helper_matcher_spec.rb +0 -26
  107. data/spec/generator_spec/matchers/rails/mailer_matcher_spec.rb +0 -24
  108. data/spec/generator_spec/matchers/rails/model_matcher_spec.rb +0 -31
  109. data/spec/generator_spec/matchers/rails/observer_matcher_spec.rb +0 -19
  110. data/spec/generator_spec/matchers/rails/view_matcher_spec.rb +0 -23
  111. data/spec/generator_spec/rails_helpers/rails_app_spec.rb +0 -0
  112. data/spec/generator_spec/rails_helpers/rails_controller_spec.rb +0 -33
  113. data/spec/generator_spec/rails_helpers/rails_helper_spec.rb +0 -33
  114. data/spec/generator_spec/rails_helpers/rails_mailer_spec.rb +0 -33
  115. data/spec/generator_spec/rails_helpers/rails_migration_spec.rb +0 -0
  116. data/spec/generator_spec/rails_helpers/rails_model_spec.rb +0 -31
  117. data/spec/generator_spec/rails_helpers/rails_observer_spec.rb +0 -33
  118. data/spec/generator_spec/rails_helpers/rails_orm_spec.rb +0 -0
  119. data/spec/generator_spec/rails_helpers/rails_view_spec.rb +0 -31
@@ -1,40 +0,0 @@
1
- module RSpec::Rails
2
- module Helper
3
- include RSpec::Rails::BaseHelper
4
-
5
- def helper_file_name name, options=nil
6
- artifact_path name, :helper
7
- end
8
-
9
- def create_helper name, options={}, &block
10
- create_artifact(name, set(options, :helper), &block)
11
- end
12
-
13
- def insert_into_helper(name, options={}, &block)
14
- insert_content(name, set(options, :helper), &block)
15
- end
16
- alias_method :update_helper, :insert_into_helper
17
-
18
- def read_helper(name, options={}, &block)
19
- read_artifact(name, set(options, :helper), &block)
20
- end
21
-
22
- def remove_helper name
23
- remove_artifact name, :helper
24
- end
25
-
26
- def remove_helpers *names
27
- remove_artifacts :helper, *names
28
- end
29
-
30
- def helper_marker name, options=nil
31
- "#{name.to_s.camelize}Helper"
32
- end
33
-
34
- def new_helper_content name, content=nil, &block
35
- new_artifact_content name, :helper, content, &block
36
- end
37
-
38
- aliases_for :helper
39
- end
40
- end
@@ -1,39 +0,0 @@
1
- module RSpec::Rails
2
- module Mailer
3
- include RSpec::Rails::BaseHelper
4
-
5
- def mailer_file_name name, options=nil
6
- artifact_path name, :mailer
7
- end
8
-
9
- def create_mailer name, options={}, &block
10
- create_artifact(name, set(options, :mailer), &block)
11
- end
12
-
13
- def insert_into_mailer(name, options={}, &block)
14
- insert_content(name, set(options, :mailer), &block)
15
- end
16
-
17
- def read_mailer(name, options={}, &block)
18
- read_artifact(name, set(options, :mailer), &block)
19
- end
20
-
21
- def remove_mailer name
22
- remove_artifact name, :mailer
23
- end
24
-
25
- def remove_mailers *names
26
- remove_artifacts :mailer, *names
27
- end
28
-
29
- def mailer_marker name, options=nil
30
- "#{name.to_s.camelize} < ActionMailer::Base"
31
- end
32
-
33
- def new_mailer_content name, content=nil, &block
34
- new_artifact_content name, :mailer, content, &block
35
- end
36
-
37
- aliases_for :mailer
38
- end
39
- end
@@ -1,51 +0,0 @@
1
- module RSpec::Rails
2
- module Migration
3
- include RSpec::Rails::BaseHelper
4
-
5
- include Rails::Generators::MigrationHelper::ClassMethods
6
-
7
- def migration_file_name name, options={}
8
- number = options[:number]
9
- number = next_migration_number(migration_dir) if !number
10
- File.join(migration_dir, "#{number}_#{name}.rb")
11
- end
12
-
13
- def create_migration name, options={}, &block
14
- create_artifact(name, set(options, :migration), &block)
15
- end
16
-
17
- def find_migration name, option=nil
18
- migrations = Dir.glob("#{migration_dir}/[0-9]*_*.rb")
19
- return nil if !migrations.empty?
20
- matching_migrations = migrations.grep(/\d+_#{name}\.rb$/)
21
- return nil if matching_migrations.empty?
22
- migration_file = (option == :last) ? matching_migrations.last : matching_migrations.first
23
- end
24
-
25
- def insert_into_migration(name, options={}, &block)
26
- insert_content(name, set(options, :migration), &block)
27
- end
28
-
29
- def read_migration(name, options={}, &block)
30
- read_artifact(name, set(options, :migration), &block)
31
- end
32
-
33
- def remove_migration name
34
- remove_artifact :migration, name
35
- end
36
-
37
- def remove_migrations *names
38
- remove_artifacts :migration, *names
39
- end
40
-
41
- def migration_marker name, options=nil
42
- "#{name.to_s.camelize} < ActiveRecord::Migration"
43
- end
44
-
45
- def new_migration_content name, content=nil, &block
46
- new_artifact_content name, :migration, content, &block
47
- end
48
-
49
- aliases_for :migration
50
- end
51
- end
@@ -1,40 +0,0 @@
1
- module RSpec::Rails
2
- module Model
3
- include RSpec::Rails::BaseHelper
4
-
5
- def model_file_name name, options=nil
6
- artifact_path name, :model
7
- end
8
-
9
- def create_model name, options={}, &block
10
- create_artifact(name, set(options, :model), &block)
11
- end
12
-
13
- def insert_into_model(name, options={}, &block)
14
- insert_content(name, set(options, :model), &block)
15
- end
16
-
17
- def read_model(name, options={}, &block)
18
- read_artifact(name, set(options, :model), &block)
19
- end
20
-
21
- def remove_model name
22
- remove_artifact name, :model
23
- end
24
-
25
- def remove_models *names
26
- remove_artifacts :model, *names
27
- end
28
-
29
- def model_marker name, options={}
30
- return send :orm_marker_name, options[:model_type] if respond_to?(:orm_marker_name)
31
- name.camelize
32
- end
33
-
34
- aliases_for :model
35
-
36
- def orm_notify
37
- ". You must specify an ORM with the macro use_orm, f.ex -- use_orm :active_record"
38
- end
39
- end
40
- end
@@ -1,39 +0,0 @@
1
- module RSpec::Rails
2
- module Observer
3
- include RSpec::Rails::BaseHelper
4
-
5
- def observer_file_name name, options=nil
6
- artifact_path name, :observer
7
- end
8
-
9
- def create_observer name, options={}, &block
10
- create_artifact(name, set(options, :observer), &block)
11
- end
12
-
13
- def insert_into_observer(name, options={}, &block)
14
- insert_content(name, set(options, :observer), &block)
15
- end
16
-
17
- def read_observer(name, options={}, &block)
18
- read_artifact(name, set(options, :observer), &block)
19
- end
20
-
21
- def remove_observer name
22
- remove_artifact name, :observer
23
- end
24
-
25
- def remove_observers *names
26
- remove_artifacts :observer, *names
27
- end
28
-
29
- def observer_marker name, options=nil
30
- "#{name.to_s.camelize}Observer < ActiveRecord::Observer"
31
- end
32
-
33
- def new_observer_content name, content=nil, &block
34
- new_artifact_content name, :observer, content, &block
35
- end
36
-
37
- aliases_for :observer
38
- end
39
- end
@@ -1,114 +0,0 @@
1
- require 'generator_spec/rails_helpers/rails_model'
2
-
3
- module RSpec::Rails
4
- module Orm
5
- module Base
6
- include RSpec::Rails::Model
7
-
8
- protected
9
-
10
- def orm_marker_name type = :document
11
- document_name type
12
- end
13
-
14
- def document_name type
15
- type_content = type == :document ? "#{orm_name}::Document" : "#{orm_name}::EmbeddedDocument"
16
- end
17
-
18
- def clazz name
19
- "class #{name.to_s.camelize}"
20
- end
21
-
22
- def file name, include_stmt, &block
23
- %Q{#{clazz name}
24
- #{include_stmt}
25
- #{yield if block}
26
- end}
27
- end
28
-
29
- def file_w_include name, module_name, &block
30
- file name, "include #{module_name}", &block
31
- end
32
-
33
- def file_w_inherit name, module_name, &block
34
- %Q{#{clazz name} < #{module_name}
35
- #{yield if block}
36
- end}
37
- end
38
-
39
- def field name, type = nil
40
- return "#{field_name} :#{name}, #{type}" if type
41
- "#{field_name} :#{name}"
42
- end
43
- end
44
-
45
- module ActiveRecord
46
- include RSpec::Rails::Orm::Base
47
-
48
- def orm_marker_name type=nil
49
- 'ActiveRecord::Base'
50
- end
51
-
52
- def new_model_content name, type=nil, content
53
- file_w_inherit(name, orm_marker_name(type)) { content }
54
- end
55
- end
56
-
57
- module MongoMapper
58
- include RSpec::Rails::Orm::Base
59
-
60
- def orm_name
61
- 'MongoMapper'
62
- end
63
-
64
- def new_model_content name, type = :document
65
- file_w_include(name, orm_marker_name(type)) { content }
66
- end
67
-
68
- def field_name
69
- 'key'
70
- end
71
- end
72
-
73
- module Mongoid
74
- include RSpec::Rails::Orm::Base
75
-
76
- def orm_name
77
- 'Mongoid'
78
- end
79
-
80
- def field_name
81
- 'field'
82
- end
83
-
84
- def new_model_content name, type = :document
85
- file_w_include(name, orm_marker_name(type)) { content }
86
- end
87
-
88
- def field name, type = nil
89
- return "#{field_name} :#{name}, :type => #{type}" if type
90
- "#{field_name} :#{name}"
91
- end
92
- end
93
-
94
- module DataMapper
95
- include RSpec::Rails::Orm::Base
96
-
97
- def orm_name
98
- 'DataMapper'
99
- end
100
-
101
- def orm_marker_name type=nil
102
- "#{orm_name}::Resource"
103
- end
104
-
105
- def new_model_content name
106
- file_w_include(name, orm_marker_name(type)) { content }
107
- end
108
-
109
- def field_name
110
- 'property'
111
- end
112
- end
113
- end
114
- end
@@ -1,65 +0,0 @@
1
- module RSpec::Rails
2
- module View
3
- include RSpec::Rails::BaseHelper
4
-
5
- # CREATE
6
- def create_view name, options = {}, &block
7
- file = view_file_name(name, options[:action], options[:type])
8
- dir = File.dirname(file)
9
- FileUtils.mkdir_p dir if !File.directory?(dir)
10
- content = options[:content]
11
- # set content to block
12
- content ||= yield if block
13
-
14
- # abort if no content given
15
- return if !content
16
-
17
- # write file content of view
18
- File.open(file, 'w') do |f|
19
- f.puts content
20
- end
21
- end
22
-
23
- # READ
24
- def read_view(name, options = {}, &block)
25
- file_name = view_file_name(name, options[:action], options[:type])
26
- debug "reading from: #{file_name}"
27
- content = File.new(file_name).try :read
28
- debug "read content: #{content}"
29
- yield content if block
30
- content
31
- end
32
-
33
-
34
- # UPDATE
35
- def insert_into_view(name, options = {}, &block)
36
- debug "insert_into_view: #{options}"
37
- file = view_file_name(name, options[:action], options[:type])
38
- debug "file insertion (view): #{file}"
39
- marker = options[:before] || options[:after]
40
- file_insertion(file, marker, options, &block) if marker
41
- end
42
- alias_method :update_view, :insert_into_view
43
-
44
- # DELETE
45
- def remove_view name, action=nil, type=nil
46
- file = view_file_name(name, action, type)
47
- FileUtils.rm_f(file) if File.exist?(file)
48
- end
49
- alias_method :delete_view, :remove_view
50
-
51
- def get_action action
52
- action || 'show'
53
- end
54
-
55
- def get_type type
56
- type || 'html.erb'
57
- end
58
-
59
- def view_file_name name, action=nil, type=nil
60
- File.join(view_dir, name.to_s, "#{get_action action}.#{get_type type}")
61
- end
62
-
63
- aliases_for :view
64
- end
65
- end
@@ -1,96 +0,0 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
- # -*- encoding: utf-8 -*-
5
-
6
- Gem::Specification.new do |s|
7
- s.name = %q{rspec_for_generators}
8
- s.version = "0.3.1"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Kristian Mandrup"]
12
- s.date = %q{2010-08-04}
13
- s.description = %q{RSpec 2 matchers, helpers and utils to assist in writing generator specs}
14
- s.email = %q{kmandrup@gmail.com}
15
- s.extra_rdoc_files = [
16
- "LICENSE",
17
- "README.markdown"
18
- ]
19
- s.files = [
20
- ".document",
21
- ".gitignore",
22
- "LICENSE",
23
- "README.markdown",
24
- "Rakefile",
25
- "VERSION",
26
- "lib/generators/demo/demo_generator.rb",
27
- "lib/rspec_for_generators.rb",
28
- "lib/rspec_for_generators/fixtures/routes.rb",
29
- "lib/rspec_for_generators/generator_spec_helper.rb",
30
- "lib/rspec_for_generators/main.rb",
31
- "lib/rspec_for_generators/matchers/content/all.rb",
32
- "lib/rspec_for_generators/matchers/content/have_class.rb",
33
- "lib/rspec_for_generators/matchers/content/have_method.rb",
34
- "lib/rspec_for_generators/matchers/content/have_module.rb",
35
- "lib/rspec_for_generators/matchers/content/include_module.rb",
36
- "lib/rspec_for_generators/matchers/content/inherit_from.rb",
37
- "lib/rspec_for_generators/matchers/file/all.rb",
38
- "lib/rspec_for_generators/matchers/file/generate_file.rb",
39
- "lib/rspec_for_generators/matchers/file/generate_migration.rb",
40
- "lib/rspec_for_generators/matchers/helpers/content.rb",
41
- "lib/rspec_for_generators/matchers/helpers/file.rb",
42
- "lib/rspec_for_generators/rails_helpers/all.rb",
43
- "lib/rspec_for_generators/rails_helpers/rails_app.rb",
44
- "lib/rspec_for_generators/rails_helpers/rails_controller.rb",
45
- "lib/rspec_for_generators/rails_helpers/rails_helper.rb",
46
- "lib/rspec_for_generators/rails_helpers/rails_mailer.rb",
47
- "lib/rspec_for_generators/rails_helpers/rails_model.rb",
48
- "lib/rspec_for_generators/rails_helpers/rails_orm.rb",
49
- "lib/rspec_for_generators/rails_helpers/rails_view.rb",
50
- "lib/rspec_for_generators/rails_spec_helper.rb",
51
- "lib/rspec_for_generators/rspec_test_case.rb",
52
- "rspec_for_generators.gemspec",
53
- "spec/rspec_for_generators/rspec_for_generators_spec.rb",
54
- "spec/spec.opts",
55
- "spec/spec_helper.rb",
56
- "wiki/Custom Rails 3 Generators.textile"
57
- ]
58
- s.homepage = %q{http://github.com/kristianmandrup/rspec_for_generators}
59
- s.rdoc_options = ["--charset=UTF-8"]
60
- s.require_paths = ["lib"]
61
- s.rubygems_version = %q{1.3.7}
62
- s.summary = %q{RSpec 2 matchers, helpers and utils for writing generator specs}
63
- s.test_files = [
64
- "spec/rspec_for_generators/rspec_for_generators_spec.rb",
65
- "spec/spec_helper.rb"
66
- ]
67
-
68
- if s.respond_to? :specification_version then
69
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
70
- s.specification_version = 3
71
-
72
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
73
- s.add_development_dependency(%q<rspec>, [">= 2.0.0.beta19"])
74
- s.add_runtime_dependency(%q<rspec>, [">= 2.0.0.beta.19"])
75
- s.add_runtime_dependency(%q<rake>, [">= 0.8.7"])
76
- s.add_runtime_dependency(%q<rails>, [">= 3.0.0.rc"])
77
- s.add_runtime_dependency(%q<test-unit>, [">= 2.0.9"])
78
- s.add_runtime_dependency(%q<require_all>, [">= 1.1.0"])
79
- else
80
- s.add_dependency(%q<rspec>, [">= 2.0.0.beta19"])
81
- s.add_dependency(%q<rspec>, [">= 2.0.0.beta.19"])
82
- s.add_dependency(%q<rake>, [">= 0.8.7"])
83
- s.add_dependency(%q<rails>, [">= 3.0.0.rc"])
84
- s.add_dependency(%q<test-unit>, [">= 2.0.9"])
85
- s.add_dependency(%q<require_all>, [">= 1.1.0"])
86
- end
87
- else
88
- s.add_dependency(%q<rspec>, [">= 2.0.0.beta19"])
89
- s.add_dependency(%q<rspec>, [">= 2.0.0.beta.19"])
90
- s.add_dependency(%q<rake>, [">= 0.8.7"])
91
- s.add_dependency(%q<rails>, [">= 3.0.0.rc"])
92
- s.add_dependency(%q<test-unit>, [">= 2.0.9"])
93
- s.add_dependency(%q<require_all>, [">= 1.1.0"])
94
- end
95
- end
96
-