rspec-rails 1.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (159) hide show
  1. data/History.txt +57 -0
  2. data/Manifest.txt +158 -0
  3. data/README.txt +81 -0
  4. data/Rakefile +39 -0
  5. data/UPGRADE +7 -0
  6. data/generators/rspec/CHANGES +1 -0
  7. data/generators/rspec/rspec_generator.rb +40 -0
  8. data/generators/rspec/templates/all_stories.rb +4 -0
  9. data/generators/rspec/templates/previous_failures.txt +0 -0
  10. data/generators/rspec/templates/rcov.opts +2 -0
  11. data/generators/rspec/templates/rspec.rake +132 -0
  12. data/generators/rspec/templates/script/autospec +3 -0
  13. data/generators/rspec/templates/script/spec +4 -0
  14. data/generators/rspec/templates/script/spec_server +116 -0
  15. data/generators/rspec/templates/spec.opts +4 -0
  16. data/generators/rspec/templates/spec_helper.rb +47 -0
  17. data/generators/rspec/templates/stories_helper.rb +3 -0
  18. data/generators/rspec_controller/USAGE +33 -0
  19. data/generators/rspec_controller/rspec_controller_generator.rb +49 -0
  20. data/generators/rspec_controller/templates/controller_spec.rb +25 -0
  21. data/generators/rspec_controller/templates/helper_spec.rb +11 -0
  22. data/generators/rspec_controller/templates/view_spec.rb +12 -0
  23. data/generators/rspec_default_values.rb +19 -0
  24. data/generators/rspec_model/USAGE +18 -0
  25. data/generators/rspec_model/rspec_model_generator.rb +35 -0
  26. data/generators/rspec_model/templates/model_spec.rb +15 -0
  27. data/generators/rspec_scaffold/rspec_scaffold_generator.rb +154 -0
  28. data/generators/rspec_scaffold/templates/controller_spec.rb +173 -0
  29. data/generators/rspec_scaffold/templates/edit_erb_spec.rb +26 -0
  30. data/generators/rspec_scaffold/templates/helper_spec.rb +11 -0
  31. data/generators/rspec_scaffold/templates/index_erb_spec.rb +27 -0
  32. data/generators/rspec_scaffold/templates/new_erb_spec.rb +26 -0
  33. data/generators/rspec_scaffold/templates/routing_spec.rb +59 -0
  34. data/generators/rspec_scaffold/templates/show_erb_spec.rb +23 -0
  35. data/init.rb +9 -0
  36. data/lib/autotest/discover.rb +1 -0
  37. data/lib/autotest/rails_rspec.rb +76 -0
  38. data/lib/spec/rails.rb +15 -0
  39. data/lib/spec/rails/example.rb +47 -0
  40. data/lib/spec/rails/example/assigns_hash_proxy.rb +43 -0
  41. data/lib/spec/rails/example/controller_example_group.rb +256 -0
  42. data/lib/spec/rails/example/cookies_proxy.rb +25 -0
  43. data/lib/spec/rails/example/functional_example_group.rb +87 -0
  44. data/lib/spec/rails/example/helper_example_group.rb +166 -0
  45. data/lib/spec/rails/example/model_example_group.rb +14 -0
  46. data/lib/spec/rails/example/rails_example_group.rb +33 -0
  47. data/lib/spec/rails/example/render_observer.rb +93 -0
  48. data/lib/spec/rails/example/view_example_group.rb +183 -0
  49. data/lib/spec/rails/extensions.rb +12 -0
  50. data/lib/spec/rails/extensions/action_controller/base.rb +14 -0
  51. data/lib/spec/rails/extensions/action_controller/rescue.rb +21 -0
  52. data/lib/spec/rails/extensions/action_controller/test_response.rb +11 -0
  53. data/lib/spec/rails/extensions/action_view/base.rb +31 -0
  54. data/lib/spec/rails/extensions/active_record/base.rb +30 -0
  55. data/lib/spec/rails/extensions/object.rb +5 -0
  56. data/lib/spec/rails/extensions/spec/example/configuration.rb +71 -0
  57. data/lib/spec/rails/extensions/spec/matchers/have.rb +21 -0
  58. data/lib/spec/rails/interop/testcase.rb +14 -0
  59. data/lib/spec/rails/matchers.rb +31 -0
  60. data/lib/spec/rails/matchers/assert_select.rb +131 -0
  61. data/lib/spec/rails/matchers/change.rb +11 -0
  62. data/lib/spec/rails/matchers/have_text.rb +57 -0
  63. data/lib/spec/rails/matchers/include_text.rb +54 -0
  64. data/lib/spec/rails/matchers/redirect_to.rb +113 -0
  65. data/lib/spec/rails/matchers/render_template.rb +90 -0
  66. data/lib/spec/rails/mocks.rb +132 -0
  67. data/lib/spec/rails/story_adapter.rb +79 -0
  68. data/lib/spec/rails/version.rb +15 -0
  69. data/spec/rails/autotest/mappings_spec.rb +36 -0
  70. data/spec/rails/example/assigns_hash_proxy_spec.rb +65 -0
  71. data/spec/rails/example/configuration_spec.rb +83 -0
  72. data/spec/rails/example/controller_isolation_spec.rb +62 -0
  73. data/spec/rails/example/controller_spec_spec.rb +272 -0
  74. data/spec/rails/example/cookies_proxy_spec.rb +74 -0
  75. data/spec/rails/example/example_group_factory_spec.rb +112 -0
  76. data/spec/rails/example/helper_spec_spec.rb +161 -0
  77. data/spec/rails/example/model_spec_spec.rb +18 -0
  78. data/spec/rails/example/shared_behaviour_spec.rb +16 -0
  79. data/spec/rails/example/test_unit_assertion_accessibility_spec.rb +33 -0
  80. data/spec/rails/example/view_spec_spec.rb +280 -0
  81. data/spec/rails/extensions/action_controller_rescue_action_spec.rb +54 -0
  82. data/spec/rails/extensions/action_view_base_spec.rb +48 -0
  83. data/spec/rails/extensions/active_record_spec.rb +14 -0
  84. data/spec/rails/interop/testcase_spec.rb +66 -0
  85. data/spec/rails/matchers/assert_select_spec.rb +814 -0
  86. data/spec/rails/matchers/description_generation_spec.rb +37 -0
  87. data/spec/rails/matchers/errors_on_spec.rb +13 -0
  88. data/spec/rails/matchers/have_text_spec.rb +62 -0
  89. data/spec/rails/matchers/include_text_spec.rb +64 -0
  90. data/spec/rails/matchers/redirect_to_spec.rb +209 -0
  91. data/spec/rails/matchers/render_template_spec.rb +176 -0
  92. data/spec/rails/matchers/should_change_spec.rb +15 -0
  93. data/spec/rails/mocks/ar_classes.rb +10 -0
  94. data/spec/rails/mocks/mock_model_spec.rb +106 -0
  95. data/spec/rails/mocks/stub_model_spec.rb +80 -0
  96. data/spec/rails/sample_modified_fixture.rb +8 -0
  97. data/spec/rails/sample_spec.rb +8 -0
  98. data/spec/rails/spec_server_spec.rb +96 -0
  99. data/spec/rails/spec_spec.rb +11 -0
  100. data/spec/rails_suite.rb +7 -0
  101. data/spec/spec_helper.rb +57 -0
  102. data/spec_resources/controllers/action_view_base_spec_controller.rb +2 -0
  103. data/spec_resources/controllers/controller_spec_controller.rb +94 -0
  104. data/spec_resources/controllers/redirect_spec_controller.rb +59 -0
  105. data/spec_resources/controllers/render_spec_controller.rb +30 -0
  106. data/spec_resources/controllers/rjs_spec_controller.rb +58 -0
  107. data/spec_resources/helpers/explicit_helper.rb +38 -0
  108. data/spec_resources/helpers/more_explicit_helper.rb +5 -0
  109. data/spec_resources/helpers/plugin_application_helper.rb +6 -0
  110. data/spec_resources/helpers/view_spec_helper.rb +13 -0
  111. data/spec_resources/views/controller_spec/_partial.rhtml +0 -0
  112. data/spec_resources/views/controller_spec/action_setting_flash_after_session_reset.rhtml +1 -0
  113. data/spec_resources/views/controller_spec/action_setting_flash_before_session_reset.rhtml +1 -0
  114. data/spec_resources/views/controller_spec/action_setting_the_assigns_hash.rhtml +0 -0
  115. data/spec_resources/views/controller_spec/action_with_errors_in_template.rhtml +1 -0
  116. data/spec_resources/views/controller_spec/action_with_template.rhtml +1 -0
  117. data/spec_resources/views/layouts/application.rhtml +0 -0
  118. data/spec_resources/views/layouts/simple.rhtml +0 -0
  119. data/spec_resources/views/objects/_object.html.erb +1 -0
  120. data/spec_resources/views/render_spec/_a_partial.rhtml +0 -0
  121. data/spec_resources/views/render_spec/action_with_alternate_layout.rhtml +0 -0
  122. data/spec_resources/views/render_spec/some_action.js.rjs +1 -0
  123. data/spec_resources/views/render_spec/some_action.rhtml +0 -0
  124. data/spec_resources/views/render_spec/some_action.rjs +1 -0
  125. data/spec_resources/views/rjs_spec/_replacement_partial.rhtml +1 -0
  126. data/spec_resources/views/rjs_spec/hide_div.rjs +1 -0
  127. data/spec_resources/views/rjs_spec/hide_page_element.rjs +1 -0
  128. data/spec_resources/views/rjs_spec/insert_html.rjs +1 -0
  129. data/spec_resources/views/rjs_spec/replace.rjs +1 -0
  130. data/spec_resources/views/rjs_spec/replace_html.rjs +1 -0
  131. data/spec_resources/views/rjs_spec/replace_html_with_partial.rjs +1 -0
  132. data/spec_resources/views/rjs_spec/visual_effect.rjs +1 -0
  133. data/spec_resources/views/rjs_spec/visual_toggle_effect.rjs +1 -0
  134. data/spec_resources/views/tag_spec/no_tags.rhtml +1 -0
  135. data/spec_resources/views/tag_spec/single_div_with_no_attributes.rhtml +1 -0
  136. data/spec_resources/views/tag_spec/single_div_with_one_attribute.rhtml +1 -0
  137. data/spec_resources/views/view_spec/_partial.rhtml +2 -0
  138. data/spec_resources/views/view_spec/_partial_used_twice.rhtml +0 -0
  139. data/spec_resources/views/view_spec/_partial_with_local_variable.rhtml +1 -0
  140. data/spec_resources/views/view_spec/_partial_with_sub_partial.rhtml +1 -0
  141. data/spec_resources/views/view_spec/_spacer.rhtml +1 -0
  142. data/spec_resources/views/view_spec/accessor.rhtml +5 -0
  143. data/spec_resources/views/view_spec/block_helper.rhtml +3 -0
  144. data/spec_resources/views/view_spec/entry_form.rhtml +2 -0
  145. data/spec_resources/views/view_spec/explicit_helper.rhtml +2 -0
  146. data/spec_resources/views/view_spec/foo/show.rhtml +1 -0
  147. data/spec_resources/views/view_spec/implicit_helper.rhtml +2 -0
  148. data/spec_resources/views/view_spec/multiple_helpers.rhtml +3 -0
  149. data/spec_resources/views/view_spec/should_not_receive.rhtml +3 -0
  150. data/spec_resources/views/view_spec/template_with_partial.rhtml +5 -0
  151. data/spec_resources/views/view_spec/template_with_partial_using_collection.rhtml +3 -0
  152. data/spec_resources/views/view_spec/template_with_partial_with_array.rhtml +1 -0
  153. data/stories/all.rb +10 -0
  154. data/stories/configuration/stories.rb +5 -0
  155. data/stories/helper.rb +6 -0
  156. data/stories/steps/people.rb +8 -0
  157. data/stories/transactions_should_rollback +15 -0
  158. data/stories/transactions_should_rollback.rb +25 -0
  159. metadata +234 -0
@@ -0,0 +1,59 @@
1
+ class RedirectSpecController < ApplicationController
2
+
3
+ def action_with_no_redirect
4
+ render :text => "this is just here to keep this from causing a MissingTemplate error"
5
+ end
6
+
7
+ def action_with_redirect_to_somewhere
8
+ redirect_to :action => 'somewhere'
9
+ end
10
+
11
+ def action_with_redirect_to_other_somewhere
12
+ redirect_to :controller => 'render_spec', :action => 'text_action'
13
+ end
14
+
15
+ def action_with_redirect_to_somewhere_and_return
16
+ redirect_to :action => 'somewhere' and return
17
+ render :text => "this is after the return"
18
+ end
19
+
20
+ def somewhere
21
+ render :text => "this is just here to keep this from causing a MissingTemplate error"
22
+ end
23
+
24
+ def action_with_redirect_to_rspec_site
25
+ redirect_to "http://rspec.rubyforge.org"
26
+ end
27
+
28
+ def action_with_redirect_back
29
+ redirect_to :back
30
+ end
31
+
32
+ def action_with_redirect_in_respond_to
33
+ respond_to do |wants|
34
+ wants.html { redirect_to :action => 'somewhere' }
35
+ end
36
+ end
37
+
38
+ def action_with_redirect_which_creates_query_string
39
+ redirect_to :action => "somewhere", :id => 1111, :param1 => "value1", :param2 => "value2"
40
+ end
41
+
42
+ # note: sometimes this is the URL which rails will generate from the hash in
43
+ # action_with_redirect_which_creates_query_string
44
+ def action_with_redirect_with_query_string_order1
45
+ redirect_to "http://test.host/redirect_spec/somewhere/1111?param1=value1&param2=value2"
46
+ end
47
+
48
+ # note: sometimes this is the URL which rails will generate from the hash in
49
+ # action_with_redirect_which_creates_query_string
50
+ def action_with_redirect_with_query_string_order2
51
+ redirect_to "http://test.host/redirect_spec/somewhere/1111?param2=value2&param1=value1"
52
+ end
53
+
54
+ def action_with_redirect_to_unroutable_url_inside_app
55
+ redirect_to :controller => "nonexistant", :action => "none"
56
+ end
57
+
58
+ end
59
+
@@ -0,0 +1,30 @@
1
+ class RenderSpecController < ApplicationController
2
+ set_view_path File.join(File.dirname(__FILE__), "..", "views")
3
+
4
+ def some_action
5
+ respond_to do |format|
6
+ format.html
7
+ format.js
8
+ end
9
+ end
10
+
11
+ def action_which_renders_template_from_other_controller
12
+ render :template => 'controller_spec/action_with_template'
13
+ end
14
+
15
+ def text_action
16
+ render :text => "this is the text for this action"
17
+ end
18
+
19
+ def action_with_partial
20
+ render :partial => "a_partial"
21
+ end
22
+
23
+ def action_that_renders_nothing
24
+ render :nothing => true
25
+ end
26
+
27
+ def action_with_alternate_layout
28
+ render :layout => 'simple'
29
+ end
30
+ end
@@ -0,0 +1,58 @@
1
+ class RjsSpecController < ApplicationController
2
+ set_view_path File.join(File.dirname(__FILE__), "..", "views")
3
+
4
+ def replace_html
5
+ end
6
+
7
+ def insert_html
8
+ end
9
+
10
+ def replace
11
+ end
12
+
13
+ def hide_div
14
+ end
15
+
16
+ def hide_page_element
17
+ end
18
+
19
+ def replace_html_with_partial
20
+ end
21
+
22
+ def render_replace_html
23
+ render :update do |page|
24
+ page.replace_html 'mydiv', 'replacement text'
25
+ page.replace_html 'myotherdiv', 'other replacement text'
26
+ end
27
+ end
28
+
29
+ def render_replace_html_with_partial
30
+ render :update do |page|
31
+ page.replace_html 'mydiv', :partial => 'rjs_spec/replacement_partial'
32
+ end
33
+ end
34
+
35
+ def render_insert_html
36
+ render :update do |page|
37
+ page.insert_html 'mydiv', 'replacement text'
38
+ end
39
+ end
40
+
41
+ def render_replace
42
+ render :update do |page|
43
+ page.replace 'mydiv', 'replacement text'
44
+ end
45
+ end
46
+
47
+ def render_hide_div
48
+ render :update do |page|
49
+ page.hide 'mydiv'
50
+ end
51
+ end
52
+
53
+ def render_hide_page_element
54
+ render :update do |page|
55
+ page['mydiv'].hide
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,38 @@
1
+ module ExplicitHelper
2
+ def method_in_explicit_helper
3
+ "<div>This is text from a method in the ExplicitHelper</div>"
4
+ end
5
+
6
+ # this is an example of a method spec'able with eval_erb in helper specs
7
+ def prepend(arg, &block)
8
+ begin # rails edge after 2.1.0 eliminated need for block.binding
9
+ concat(arg) + block.call
10
+ rescue
11
+ concat(arg, block.binding) + block.call
12
+ end
13
+ end
14
+
15
+ def named_url
16
+ rspec_on_rails_specs_url
17
+ end
18
+
19
+ def named_path
20
+ rspec_on_rails_specs_path
21
+ end
22
+
23
+ def params_foo
24
+ params[:foo]
25
+ end
26
+
27
+ def session_foo
28
+ session[:foo]
29
+ end
30
+
31
+ def request_thing
32
+ request.thing
33
+ end
34
+
35
+ def flash_thing
36
+ flash[:thing]
37
+ end
38
+ end
@@ -0,0 +1,5 @@
1
+ module MoreExplicitHelper
2
+ def method_in_more_explicit_helper
3
+ "<div>This is text from a method in the MoreExplicitHelper</div>"
4
+ end
5
+ end
@@ -0,0 +1,6 @@
1
+ # Methods added to this helper will be available to all templates in the application.
2
+ module ApplicationHelper
3
+ def method_in_plugin_application_helper
4
+ "<div>This is text from a method in the ApplicationHelper</div>"
5
+ end
6
+ end
@@ -0,0 +1,13 @@
1
+ module ViewSpecHelper
2
+ def method_in_helper
3
+ "<div>This is text from a method in the ViewSpecHelper</div>"
4
+ end
5
+
6
+ def method_in_template_with_partial
7
+ "<div>method_in_template_with_partial in ViewSpecHelper</div>"
8
+ end
9
+
10
+ def method_in_partial
11
+ "<div>method_in_partial in ViewSpecHelper</div>"
12
+ end
13
+ end
@@ -0,0 +1 @@
1
+ <div>This is action_with_template.rhtml</div>
@@ -0,0 +1 @@
1
+ <%= object.name %>
@@ -0,0 +1 @@
1
+ # This is used for rails > 1.2.3
@@ -0,0 +1 @@
1
+ # This is used for rails <= 1.2.3
@@ -0,0 +1 @@
1
+ This is the text in the replacement partial.
@@ -0,0 +1 @@
1
+ page.hide 'mydiv'
@@ -0,0 +1 @@
1
+ page['mydiv'].hide
@@ -0,0 +1 @@
1
+ page.insert_html 'mydiv', 'replacement text'
@@ -0,0 +1 @@
1
+ page.replace 'mydiv', 'replacement text'
@@ -0,0 +1 @@
1
+ page.replace_html 'mydiv', 'replacement text'
@@ -0,0 +1 @@
1
+ page.replace_html 'mydiv', :partial => 'rjs_spec/replacement_partial'
@@ -0,0 +1 @@
1
+ page.visual_effect :fade, 'mydiv'
@@ -0,0 +1 @@
1
+ page.visual_effect :toggle_blind, 'mydiv'
@@ -0,0 +1 @@
1
+ <!-THIS FILE HAS NO TAGS->
@@ -0,0 +1,2 @@
1
+ <%= method_in_plugin_application_helper %>
2
+ <%= method_in_partial %>
@@ -0,0 +1 @@
1
+ <%= render :partial => 'partial', :object => partial %>
@@ -0,0 +1 @@
1
+ <hr id="spacer" />
@@ -0,0 +1,5 @@
1
+ <div id="session"><%= session[:key] %></div>
2
+ <div id="params"><%= params[:key] %></div>
3
+ <div id="flash"><%= flash[:key] %></div>
4
+ <div id="controller"><%= params[:controller] %></div>
5
+ <div id="action"><%= params[:action] %></div>
@@ -0,0 +1,3 @@
1
+ <% if_allowed do %>
2
+ <div>block helper was rendered</div>
3
+ <% end %>
@@ -0,0 +1,2 @@
1
+ <% form_tag do %>
2
+ <% end %>
@@ -0,0 +1,2 @@
1
+ <%= method_in_plugin_application_helper %>
2
+ <%= method_in_explicit_helper %>
@@ -0,0 +1 @@
1
+ <%= method_in_plugin_application_helper %>
@@ -0,0 +1,2 @@
1
+ <%= method_in_plugin_application_helper %>
2
+ <%= method_in_helper %>
@@ -0,0 +1,3 @@
1
+ <%= method_in_plugin_application_helper %>
2
+ <%= method_in_explicit_helper %>
3
+ <%= method_in_more_explicit_helper %>
@@ -0,0 +1,3 @@
1
+ <% if @obj.render_partial? %>
2
+ <%= render :partial => 'some_partial' %>
3
+ <% end %>
@@ -0,0 +1,5 @@
1
+ <%= method_in_template_with_partial %>
2
+ <%= render :partial => 'partial' %>
3
+
4
+ <%= render :partial => 'partial_used_twice' %>
5
+ <%= render :partial => 'partial_used_twice' %>
@@ -0,0 +1,3 @@
1
+ <%= render :partial => 'partial',
2
+ :collection => ['Alice', 'Bob'],
3
+ :spacer_template => 'spacer' %>
@@ -0,0 +1 @@
1
+ <%= render :partial => @array %>
@@ -0,0 +1,10 @@
1
+ require File.join(File.dirname(__FILE__), *%w[helper])
2
+ require File.join(File.dirname(__FILE__), *%w[steps people])
3
+
4
+ # Run transactions_should_rollback in Ruby
5
+ require File.join(File.dirname(__FILE__), *%w[transactions_should_rollback])
6
+
7
+ # Run transactions_should_rollback in Plain Text
8
+ with_steps_for :people do
9
+ run File.join(File.dirname(__FILE__), *%w[transactions_should_rollback]), :type => RailsStory
10
+ end
@@ -0,0 +1,5 @@
1
+ require File.join(File.dirname(__FILE__), *%w[.. helper])
2
+
3
+ with_steps_for :running_rspec do
4
+ run File.join(File.dirname(__FILE__), *%w[.. .. .. rspec stories configuration before_blocks.story]), :type => RailsStory
5
+ end
@@ -0,0 +1,6 @@
1
+ dir = File.dirname(__FILE__)
2
+ $LOAD_PATH.unshift File.expand_path("#{dir}/../lib")
3
+ require File.expand_path("#{dir}/../../../../spec/spec_helper")
4
+ require File.expand_path("#{dir}/../../rspec/stories/helper")
5
+
6
+ require 'spec/rails/story_adapter'
@@ -0,0 +1,8 @@
1
+ steps_for :people do
2
+ When "I add a Person" do
3
+ Person.create!(:name => "Foo")
4
+ end
5
+ Then "there should be one person" do
6
+ Person.count.should == 1
7
+ end
8
+ end
@@ -0,0 +1,15 @@
1
+ Story: transactions should rollback in plain text
2
+ As an RSpec/Rails Story author
3
+ I want transactions to roll back between scenarios in plain text
4
+ So that I can have confidence in the state of the database
5
+
6
+ Scenario: add one Person
7
+ When I add a Person
8
+
9
+ Scenario: add another person
10
+ GivenScenario: add one Person
11
+ Then there should be one person
12
+
13
+ Scenario: add yet another person
14
+ GivenScenario: add one Person
15
+ Then there should be one person
@@ -0,0 +1,25 @@
1
+ require File.join(File.dirname(__FILE__), *%w[helper])
2
+
3
+ Story "transactions should rollback", %{
4
+ As an RSpec/Rails Story author
5
+ I want transactions to roll back between scenarios
6
+ So that I can have confidence in the state of the database
7
+ }, :type => RailsStory do
8
+ Scenario "add one Person" do
9
+ When "I add a Person" do
10
+ Person.create!(:name => "Foo")
11
+ end
12
+ end
13
+
14
+ Scenario "add another person" do
15
+ GivenScenario "add one Person"
16
+ Then "there should be one person" do
17
+ Person.count.should == 1
18
+ end
19
+ end
20
+
21
+ Scenario "add yet another person" do
22
+ GivenScenario "add one Person"
23
+ Then "there should be one person"
24
+ end
25
+ end
metadata ADDED
@@ -0,0 +1,234 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rspec-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.5
5
+ platform: ruby
6
+ authors:
7
+ - RSpec Development Team
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2008-09-28 00:00:00 -05:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: rspec
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - "="
22
+ - !ruby/object:Gem::Version
23
+ version: 1.1.5
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: hoe
27
+ type: :development
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 1.7.0
34
+ version:
35
+ description: Behaviour Driven Development for Ruby on Rails.
36
+ email:
37
+ - rspec-devel@rubyforge.org
38
+ executables: []
39
+
40
+ extensions: []
41
+
42
+ extra_rdoc_files:
43
+ - History.txt
44
+ - Manifest.txt
45
+ - README.txt
46
+ - generators/rspec/templates/previous_failures.txt
47
+ files:
48
+ - History.txt
49
+ - Manifest.txt
50
+ - README.txt
51
+ - Rakefile
52
+ - UPGRADE
53
+ - generators/rspec/CHANGES
54
+ - generators/rspec/rspec_generator.rb
55
+ - generators/rspec/templates/all_stories.rb
56
+ - generators/rspec/templates/previous_failures.txt
57
+ - generators/rspec/templates/rcov.opts
58
+ - generators/rspec/templates/rspec.rake
59
+ - generators/rspec/templates/script/autospec
60
+ - generators/rspec/templates/script/spec
61
+ - generators/rspec/templates/script/spec_server
62
+ - generators/rspec/templates/spec.opts
63
+ - generators/rspec/templates/spec_helper.rb
64
+ - generators/rspec/templates/stories_helper.rb
65
+ - generators/rspec_controller/USAGE
66
+ - generators/rspec_controller/rspec_controller_generator.rb
67
+ - generators/rspec_controller/templates/controller_spec.rb
68
+ - generators/rspec_controller/templates/helper_spec.rb
69
+ - generators/rspec_controller/templates/view_spec.rb
70
+ - generators/rspec_default_values.rb
71
+ - generators/rspec_model/USAGE
72
+ - generators/rspec_model/rspec_model_generator.rb
73
+ - generators/rspec_model/templates/model_spec.rb
74
+ - generators/rspec_scaffold/rspec_scaffold_generator.rb
75
+ - generators/rspec_scaffold/templates/controller_spec.rb
76
+ - generators/rspec_scaffold/templates/edit_erb_spec.rb
77
+ - generators/rspec_scaffold/templates/helper_spec.rb
78
+ - generators/rspec_scaffold/templates/index_erb_spec.rb
79
+ - generators/rspec_scaffold/templates/new_erb_spec.rb
80
+ - generators/rspec_scaffold/templates/routing_spec.rb
81
+ - generators/rspec_scaffold/templates/show_erb_spec.rb
82
+ - init.rb
83
+ - lib/autotest/discover.rb
84
+ - lib/autotest/rails_rspec.rb
85
+ - lib/spec/rails.rb
86
+ - lib/spec/rails/example.rb
87
+ - lib/spec/rails/example/assigns_hash_proxy.rb
88
+ - lib/spec/rails/example/controller_example_group.rb
89
+ - lib/spec/rails/example/cookies_proxy.rb
90
+ - lib/spec/rails/example/functional_example_group.rb
91
+ - lib/spec/rails/example/helper_example_group.rb
92
+ - lib/spec/rails/example/model_example_group.rb
93
+ - lib/spec/rails/example/rails_example_group.rb
94
+ - lib/spec/rails/example/render_observer.rb
95
+ - lib/spec/rails/example/view_example_group.rb
96
+ - lib/spec/rails/extensions.rb
97
+ - lib/spec/rails/extensions/action_controller/base.rb
98
+ - lib/spec/rails/extensions/action_controller/rescue.rb
99
+ - lib/spec/rails/extensions/action_controller/test_response.rb
100
+ - lib/spec/rails/extensions/action_view/base.rb
101
+ - lib/spec/rails/extensions/active_record/base.rb
102
+ - lib/spec/rails/extensions/object.rb
103
+ - lib/spec/rails/extensions/spec/example/configuration.rb
104
+ - lib/spec/rails/extensions/spec/matchers/have.rb
105
+ - lib/spec/rails/interop/testcase.rb
106
+ - lib/spec/rails/matchers.rb
107
+ - lib/spec/rails/matchers/assert_select.rb
108
+ - lib/spec/rails/matchers/change.rb
109
+ - lib/spec/rails/matchers/have_text.rb
110
+ - lib/spec/rails/matchers/include_text.rb
111
+ - lib/spec/rails/matchers/redirect_to.rb
112
+ - lib/spec/rails/matchers/render_template.rb
113
+ - lib/spec/rails/mocks.rb
114
+ - lib/spec/rails/story_adapter.rb
115
+ - lib/spec/rails/version.rb
116
+ - spec/rails/autotest/mappings_spec.rb
117
+ - spec/rails/example/assigns_hash_proxy_spec.rb
118
+ - spec/rails/example/configuration_spec.rb
119
+ - spec/rails/example/controller_isolation_spec.rb
120
+ - spec/rails/example/controller_spec_spec.rb
121
+ - spec/rails/example/cookies_proxy_spec.rb
122
+ - spec/rails/example/example_group_factory_spec.rb
123
+ - spec/rails/example/helper_spec_spec.rb
124
+ - spec/rails/example/model_spec_spec.rb
125
+ - spec/rails/example/shared_behaviour_spec.rb
126
+ - spec/rails/example/test_unit_assertion_accessibility_spec.rb
127
+ - spec/rails/example/view_spec_spec.rb
128
+ - spec/rails/extensions/action_controller_rescue_action_spec.rb
129
+ - spec/rails/extensions/action_view_base_spec.rb
130
+ - spec/rails/extensions/active_record_spec.rb
131
+ - spec/rails/interop/testcase_spec.rb
132
+ - spec/rails/matchers/assert_select_spec.rb
133
+ - spec/rails/matchers/description_generation_spec.rb
134
+ - spec/rails/matchers/errors_on_spec.rb
135
+ - spec/rails/matchers/have_text_spec.rb
136
+ - spec/rails/matchers/include_text_spec.rb
137
+ - spec/rails/matchers/redirect_to_spec.rb
138
+ - spec/rails/matchers/render_template_spec.rb
139
+ - spec/rails/matchers/should_change_spec.rb
140
+ - spec/rails/mocks/ar_classes.rb
141
+ - spec/rails/mocks/mock_model_spec.rb
142
+ - spec/rails/mocks/stub_model_spec.rb
143
+ - spec/rails/sample_modified_fixture.rb
144
+ - spec/rails/sample_spec.rb
145
+ - spec/rails/spec_server_spec.rb
146
+ - spec/rails/spec_spec.rb
147
+ - spec/rails_suite.rb
148
+ - spec/spec_helper.rb
149
+ - spec_resources/controllers/action_view_base_spec_controller.rb
150
+ - spec_resources/controllers/controller_spec_controller.rb
151
+ - spec_resources/controllers/redirect_spec_controller.rb
152
+ - spec_resources/controllers/render_spec_controller.rb
153
+ - spec_resources/controllers/rjs_spec_controller.rb
154
+ - spec_resources/helpers/explicit_helper.rb
155
+ - spec_resources/helpers/more_explicit_helper.rb
156
+ - spec_resources/helpers/plugin_application_helper.rb
157
+ - spec_resources/helpers/view_spec_helper.rb
158
+ - spec_resources/views/controller_spec/_partial.rhtml
159
+ - spec_resources/views/controller_spec/action_setting_flash_after_session_reset.rhtml
160
+ - spec_resources/views/controller_spec/action_setting_flash_before_session_reset.rhtml
161
+ - spec_resources/views/controller_spec/action_setting_the_assigns_hash.rhtml
162
+ - spec_resources/views/controller_spec/action_with_errors_in_template.rhtml
163
+ - spec_resources/views/controller_spec/action_with_template.rhtml
164
+ - spec_resources/views/layouts/application.rhtml
165
+ - spec_resources/views/layouts/simple.rhtml
166
+ - spec_resources/views/objects/_object.html.erb
167
+ - spec_resources/views/render_spec/_a_partial.rhtml
168
+ - spec_resources/views/render_spec/action_with_alternate_layout.rhtml
169
+ - spec_resources/views/render_spec/some_action.js.rjs
170
+ - spec_resources/views/render_spec/some_action.rhtml
171
+ - spec_resources/views/render_spec/some_action.rjs
172
+ - spec_resources/views/rjs_spec/_replacement_partial.rhtml
173
+ - spec_resources/views/rjs_spec/hide_div.rjs
174
+ - spec_resources/views/rjs_spec/hide_page_element.rjs
175
+ - spec_resources/views/rjs_spec/insert_html.rjs
176
+ - spec_resources/views/rjs_spec/replace.rjs
177
+ - spec_resources/views/rjs_spec/replace_html.rjs
178
+ - spec_resources/views/rjs_spec/replace_html_with_partial.rjs
179
+ - spec_resources/views/rjs_spec/visual_effect.rjs
180
+ - spec_resources/views/rjs_spec/visual_toggle_effect.rjs
181
+ - spec_resources/views/tag_spec/no_tags.rhtml
182
+ - spec_resources/views/tag_spec/single_div_with_no_attributes.rhtml
183
+ - spec_resources/views/tag_spec/single_div_with_one_attribute.rhtml
184
+ - spec_resources/views/view_spec/_partial.rhtml
185
+ - spec_resources/views/view_spec/_partial_used_twice.rhtml
186
+ - spec_resources/views/view_spec/_partial_with_local_variable.rhtml
187
+ - spec_resources/views/view_spec/_partial_with_sub_partial.rhtml
188
+ - spec_resources/views/view_spec/_spacer.rhtml
189
+ - spec_resources/views/view_spec/accessor.rhtml
190
+ - spec_resources/views/view_spec/block_helper.rhtml
191
+ - spec_resources/views/view_spec/entry_form.rhtml
192
+ - spec_resources/views/view_spec/explicit_helper.rhtml
193
+ - spec_resources/views/view_spec/foo/show.rhtml
194
+ - spec_resources/views/view_spec/implicit_helper.rhtml
195
+ - spec_resources/views/view_spec/multiple_helpers.rhtml
196
+ - spec_resources/views/view_spec/should_not_receive.rhtml
197
+ - spec_resources/views/view_spec/template_with_partial.rhtml
198
+ - spec_resources/views/view_spec/template_with_partial_using_collection.rhtml
199
+ - spec_resources/views/view_spec/template_with_partial_with_array.rhtml
200
+ - stories/all.rb
201
+ - stories/configuration/stories.rb
202
+ - stories/helper.rb
203
+ - stories/steps/people.rb
204
+ - stories/transactions_should_rollback
205
+ - stories/transactions_should_rollback.rb
206
+ has_rdoc: true
207
+ homepage: http://rspec.info/
208
+ post_install_message:
209
+ rdoc_options:
210
+ - --main
211
+ - README.txt
212
+ require_paths:
213
+ - lib
214
+ required_ruby_version: !ruby/object:Gem::Requirement
215
+ requirements:
216
+ - - ">="
217
+ - !ruby/object:Gem::Version
218
+ version: "0"
219
+ version:
220
+ required_rubygems_version: !ruby/object:Gem::Requirement
221
+ requirements:
222
+ - - ">="
223
+ - !ruby/object:Gem::Version
224
+ version: "0"
225
+ version:
226
+ requirements: []
227
+
228
+ rubyforge_project: rspec
229
+ rubygems_version: 1.2.0
230
+ signing_key:
231
+ specification_version: 2
232
+ summary: rspec-rails version 1.1.5
233
+ test_files: []
234
+