exception2db 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (213) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/Rakefile +48 -0
  3. data/app/controllers/exception2db/main_controller.rb +34 -0
  4. data/app/models/e2db.rb +68 -0
  5. data/app/views/exception2db/main/index.html.erb +15 -0
  6. data/app/views/exception2db/main/show.html.erb +77 -0
  7. data/app/views/layouts/exception2db.html.erb +25 -0
  8. data/config/routes.rb +12 -0
  9. data/init.rb +23 -0
  10. data/lib/css/style.css +377 -0
  11. data/lib/exception2db.rb +27 -0
  12. data/lib/exception2db/config.rb +22 -0
  13. data/lib/exception2db/railtie.rb +12 -0
  14. data/lib/exception2db/util.rb +17 -0
  15. data/lib/exception2db/version.rb +3 -0
  16. data/lib/js/app.js +1 -0
  17. data/spec/exception2db_spec.rb +74 -0
  18. data/spec/spec_helper.rb +175 -0
  19. data/test/error_xml.rb +134 -0
  20. data/test/rails_root/Rakefile +10 -0
  21. data/test/rails_root/app/controllers/application_controller.rb +10 -0
  22. data/test/rails_root/app/controllers/articles_controller.rb +7 -0
  23. data/test/rails_root/app/models/article.rb +25 -0
  24. data/test/rails_root/app/models/city.rb +15 -0
  25. data/test/rails_root/app/models/comment.rb +13 -0
  26. data/test/rails_root/app/models/tech_magazine.rb +2 -0
  27. data/test/rails_root/app/models/vehicle/car.rb +4 -0
  28. data/test/rails_root/app/models/vehicle/door.rb +3 -0
  29. data/test/rails_root/app/models/vehicle/engine.rb +3 -0
  30. data/test/rails_root/config/boot.rb +110 -0
  31. data/test/rails_root/config/database.yml +14 -0
  32. data/test/rails_root/config/environment.rb +17 -0
  33. data/test/rails_root/config/environments/cucumber.rb +26 -0
  34. data/test/rails_root/config/environments/development.rb +0 -0
  35. data/test/rails_root/config/environments/test.rb +0 -0
  36. data/test/rails_root/config/initializers/new_rails_defaults.rb +19 -0
  37. data/test/rails_root/config/routes.rb +6 -0
  38. data/test/rails_root/db/migrate/20090809061114_create_tables.rb +15 -0
  39. data/test/rails_root/db/schema.rb +74 -0
  40. data/test/rails_root/db/sqlite3.db +0 -0
  41. data/test/rails_root/log/cucumber.log +3531 -0
  42. data/test/rails_root/log/development.log +445 -0
  43. data/test/rails_root/log/test.log +59223 -0
  44. data/test/rails_root/script/console +3 -0
  45. data/test/rails_root/script/dbconsole +3 -0
  46. data/test/rails_root/script/runner +3 -0
  47. data/test/rails_root/script/server +3 -0
  48. data/test/rspec-rails/Contribute.rdoc +4 -0
  49. data/test/rspec-rails/History.rdoc +283 -0
  50. data/test/rspec-rails/License.txt +33 -0
  51. data/test/rspec-rails/Manifest.txt +165 -0
  52. data/test/rspec-rails/README.rdoc +45 -0
  53. data/test/rspec-rails/Rakefile +72 -0
  54. data/test/rspec-rails/TODO.txt +17 -0
  55. data/test/rspec-rails/Upgrade.rdoc +148 -0
  56. data/test/rspec-rails/generators/integration_spec/integration_spec_generator.rb +10 -0
  57. data/test/rspec-rails/generators/integration_spec/templates/integration_spec.rb +4 -0
  58. data/test/rspec-rails/generators/rspec/CHANGES +1 -0
  59. data/test/rspec-rails/generators/rspec/rspec_generator.rb +53 -0
  60. data/test/rspec-rails/generators/rspec/templates/previous_failures.txt +0 -0
  61. data/test/rspec-rails/generators/rspec/templates/rcov.opts +2 -0
  62. data/test/rspec-rails/generators/rspec/templates/rspec.rake +144 -0
  63. data/test/rspec-rails/generators/rspec/templates/script/autospec +6 -0
  64. data/test/rspec-rails/generators/rspec/templates/script/spec +10 -0
  65. data/test/rspec-rails/generators/rspec/templates/spec.opts +4 -0
  66. data/test/rspec-rails/generators/rspec/templates/spec_helper.rb +54 -0
  67. data/test/rspec-rails/generators/rspec_controller/USAGE +33 -0
  68. data/test/rspec-rails/generators/rspec_controller/rspec_controller_generator.rb +47 -0
  69. data/test/rspec-rails/generators/rspec_controller/templates/controller_spec.rb +25 -0
  70. data/test/rspec-rails/generators/rspec_controller/templates/helper_spec.rb +11 -0
  71. data/test/rspec-rails/generators/rspec_controller/templates/view_spec.rb +12 -0
  72. data/test/rspec-rails/generators/rspec_default_values.rb +28 -0
  73. data/test/rspec-rails/generators/rspec_model/USAGE +18 -0
  74. data/test/rspec-rails/generators/rspec_model/rspec_model_generator.rb +35 -0
  75. data/test/rspec-rails/generators/rspec_model/templates/model_spec.rb +13 -0
  76. data/test/rspec-rails/generators/rspec_scaffold/rspec_scaffold_generator.rb +154 -0
  77. data/test/rspec-rails/generators/rspec_scaffold/templates/controller_spec.rb +131 -0
  78. data/test/rspec-rails/generators/rspec_scaffold/templates/edit_erb_spec.rb +25 -0
  79. data/test/rspec-rails/generators/rspec_scaffold/templates/helper_spec.rb +11 -0
  80. data/test/rspec-rails/generators/rspec_scaffold/templates/index_erb_spec.rb +27 -0
  81. data/test/rspec-rails/generators/rspec_scaffold/templates/new_erb_spec.rb +25 -0
  82. data/test/rspec-rails/generators/rspec_scaffold/templates/routing_spec.rb +33 -0
  83. data/test/rspec-rails/generators/rspec_scaffold/templates/show_erb_spec.rb +22 -0
  84. data/test/rspec-rails/init.rb +9 -0
  85. data/test/rspec-rails/lib/autotest/discover.rb +5 -0
  86. data/test/rspec-rails/lib/autotest/rails_rspec.rb +76 -0
  87. data/test/rspec-rails/lib/spec/rails.rb +26 -0
  88. data/test/rspec-rails/lib/spec/rails/example.rb +48 -0
  89. data/test/rspec-rails/lib/spec/rails/example/assigns_hash_proxy.rb +39 -0
  90. data/test/rspec-rails/lib/spec/rails/example/controller_example_group.rb +278 -0
  91. data/test/rspec-rails/lib/spec/rails/example/cookies_proxy.rb +29 -0
  92. data/test/rspec-rails/lib/spec/rails/example/functional_example_group.rb +106 -0
  93. data/test/rspec-rails/lib/spec/rails/example/helper_example_group.rb +153 -0
  94. data/test/rspec-rails/lib/spec/rails/example/integration_example_group.rb +16 -0
  95. data/test/rspec-rails/lib/spec/rails/example/model_example_group.rb +14 -0
  96. data/test/rspec-rails/lib/spec/rails/example/render_observer.rb +80 -0
  97. data/test/rspec-rails/lib/spec/rails/example/routing_example_group.rb +13 -0
  98. data/test/rspec-rails/lib/spec/rails/example/routing_helpers.rb +66 -0
  99. data/test/rspec-rails/lib/spec/rails/example/view_example_group.rb +199 -0
  100. data/test/rspec-rails/lib/spec/rails/extensions.rb +11 -0
  101. data/test/rspec-rails/lib/spec/rails/extensions/action_controller/rescue.rb +42 -0
  102. data/test/rspec-rails/lib/spec/rails/extensions/action_controller/test_case.rb +16 -0
  103. data/test/rspec-rails/lib/spec/rails/extensions/action_controller/test_response.rb +21 -0
  104. data/test/rspec-rails/lib/spec/rails/extensions/action_view/base.rb +33 -0
  105. data/test/rspec-rails/lib/spec/rails/extensions/active_record/base.rb +45 -0
  106. data/test/rspec-rails/lib/spec/rails/extensions/active_support/test_case.rb +7 -0
  107. data/test/rspec-rails/lib/spec/rails/extensions/spec/matchers/have.rb +23 -0
  108. data/test/rspec-rails/lib/spec/rails/extensions/spec/runner/configuration.rb +44 -0
  109. data/test/rspec-rails/lib/spec/rails/interop/testcase.rb +14 -0
  110. data/test/rspec-rails/lib/spec/rails/matchers.rb +33 -0
  111. data/test/rspec-rails/lib/spec/rails/matchers/ar_be_valid.rb +46 -0
  112. data/test/rspec-rails/lib/spec/rails/matchers/assert_select.rb +180 -0
  113. data/test/rspec-rails/lib/spec/rails/matchers/change.rb +13 -0
  114. data/test/rspec-rails/lib/spec/rails/matchers/have_text.rb +57 -0
  115. data/test/rspec-rails/lib/spec/rails/matchers/include_text.rb +54 -0
  116. data/test/rspec-rails/lib/spec/rails/matchers/redirect_to.rb +126 -0
  117. data/test/rspec-rails/lib/spec/rails/matchers/render_template.rb +129 -0
  118. data/test/rspec-rails/lib/spec/rails/matchers/route_to.rb +149 -0
  119. data/test/rspec-rails/lib/spec/rails/mocks.rb +135 -0
  120. data/test/rspec-rails/lib/spec/rails/version.rb +16 -0
  121. data/test/rspec-rails/spec/autotest/mappings_spec.rb +86 -0
  122. data/test/rspec-rails/spec/rails_suite.rb +7 -0
  123. data/test/rspec-rails/spec/resources/controllers/action_view_base_spec_controller.rb +2 -0
  124. data/test/rspec-rails/spec/resources/controllers/application.rb +9 -0
  125. data/test/rspec-rails/spec/resources/controllers/controller_spec_controller.rb +127 -0
  126. data/test/rspec-rails/spec/resources/controllers/example.txt +1 -0
  127. data/test/rspec-rails/spec/resources/controllers/redirect_spec_controller.rb +70 -0
  128. data/test/rspec-rails/spec/resources/controllers/render_spec_controller.rb +34 -0
  129. data/test/rspec-rails/spec/resources/controllers/rjs_spec_controller.rb +58 -0
  130. data/test/rspec-rails/spec/resources/helpers/addition_helper.rb +5 -0
  131. data/test/rspec-rails/spec/resources/helpers/explicit_helper.rb +46 -0
  132. data/test/rspec-rails/spec/resources/helpers/more_explicit_helper.rb +5 -0
  133. data/test/rspec-rails/spec/resources/helpers/plugin_application_helper.rb +6 -0
  134. data/test/rspec-rails/spec/resources/helpers/view_spec_helper.rb +13 -0
  135. data/test/rspec-rails/spec/resources/models/animal.rb +4 -0
  136. data/test/rspec-rails/spec/resources/models/person.rb +18 -0
  137. data/test/rspec-rails/spec/resources/models/thing.rb +3 -0
  138. data/test/rspec-rails/spec/resources/views/controller_spec/_partial.html.erb +0 -0
  139. data/test/rspec-rails/spec/resources/views/controller_spec/action_setting_flash_after_session_reset.html.erb +1 -0
  140. data/test/rspec-rails/spec/resources/views/controller_spec/action_setting_flash_before_session_reset.html.erb +1 -0
  141. data/test/rspec-rails/spec/resources/views/controller_spec/action_setting_the_assigns_hash.html.erb +0 -0
  142. data/test/rspec-rails/spec/resources/views/controller_spec/action_with_errors_in_template.html.erb +1 -0
  143. data/test/rspec-rails/spec/resources/views/controller_spec/action_with_template.html.erb +1 -0
  144. data/test/rspec-rails/spec/resources/views/controller_spec/non_existent_action_with_existent_template.html.erb +0 -0
  145. data/test/rspec-rails/spec/resources/views/layouts/application.html.erb +0 -0
  146. data/test/rspec-rails/spec/resources/views/layouts/simple.html.erb +0 -0
  147. data/test/rspec-rails/spec/resources/views/objects/_object.html.erb +1 -0
  148. data/test/rspec-rails/spec/resources/views/render_spec/_a_partial.html.erb +0 -0
  149. data/test/rspec-rails/spec/resources/views/render_spec/action_with_alternate_layout.html.erb +0 -0
  150. data/test/rspec-rails/spec/resources/views/render_spec/some_action.html.erb +0 -0
  151. data/test/rspec-rails/spec/resources/views/render_spec/some_action.js.rjs +1 -0
  152. data/test/rspec-rails/spec/resources/views/rjs_spec/_replacement_partial.html.erb +1 -0
  153. data/test/rspec-rails/spec/resources/views/rjs_spec/hide_div.js.rjs +1 -0
  154. data/test/rspec-rails/spec/resources/views/rjs_spec/hide_page_element.js.rjs +1 -0
  155. data/test/rspec-rails/spec/resources/views/rjs_spec/insert_html.js.rjs +1 -0
  156. data/test/rspec-rails/spec/resources/views/rjs_spec/replace.js.rjs +1 -0
  157. data/test/rspec-rails/spec/resources/views/rjs_spec/replace_html.js.rjs +1 -0
  158. data/test/rspec-rails/spec/resources/views/rjs_spec/replace_html_with_partial.js.rjs +1 -0
  159. data/test/rspec-rails/spec/resources/views/rjs_spec/visual_effect.js.rjs +1 -0
  160. data/test/rspec-rails/spec/resources/views/rjs_spec/visual_toggle_effect.js.rjs +1 -0
  161. data/test/rspec-rails/spec/resources/views/tag_spec/no_tags.html.erb +1 -0
  162. data/test/rspec-rails/spec/resources/views/tag_spec/single_div_with_no_attributes.html.erb +1 -0
  163. data/test/rspec-rails/spec/resources/views/tag_spec/single_div_with_one_attribute.html.erb +1 -0
  164. data/test/rspec-rails/spec/resources/views/view_spec/_partial.html.erb +2 -0
  165. data/test/rspec-rails/spec/resources/views/view_spec/_partial_used_twice.html.erb +0 -0
  166. data/test/rspec-rails/spec/resources/views/view_spec/_partial_with_local_variable.html.erb +1 -0
  167. data/test/rspec-rails/spec/resources/views/view_spec/_partial_with_sub_partial.html.erb +1 -0
  168. data/test/rspec-rails/spec/resources/views/view_spec/_spacer.html.erb +1 -0
  169. data/test/rspec-rails/spec/resources/views/view_spec/accessor.html.erb +5 -0
  170. data/test/rspec-rails/spec/resources/views/view_spec/block_helper.html.erb +3 -0
  171. data/test/rspec-rails/spec/resources/views/view_spec/entry_form.html.erb +2 -0
  172. data/test/rspec-rails/spec/resources/views/view_spec/explicit_helper.html.erb +2 -0
  173. data/test/rspec-rails/spec/resources/views/view_spec/foo/show.html.erb +1 -0
  174. data/test/rspec-rails/spec/resources/views/view_spec/implicit_helper.html.erb +2 -0
  175. data/test/rspec-rails/spec/resources/views/view_spec/multiple_helpers.html.erb +3 -0
  176. data/test/rspec-rails/spec/resources/views/view_spec/path_params.html.erb +1 -0
  177. data/test/rspec-rails/spec/resources/views/view_spec/should_not_receive.html.erb +3 -0
  178. data/test/rspec-rails/spec/resources/views/view_spec/template_with_partial.html.erb +5 -0
  179. data/test/rspec-rails/spec/resources/views/view_spec/template_with_partial_using_collection.html.erb +3 -0
  180. data/test/rspec-rails/spec/resources/views/view_spec/template_with_partial_with_array.html.erb +1 -0
  181. data/test/rspec-rails/spec/resources/views/view_spec/view_helpers.html.erb +1 -0
  182. data/test/rspec-rails/spec/spec/rails/example/assigns_hash_proxy_spec.rb +109 -0
  183. data/test/rspec-rails/spec/spec/rails/example/configuration_spec.rb +65 -0
  184. data/test/rspec-rails/spec/spec/rails/example/controller_example_group_spec.rb +307 -0
  185. data/test/rspec-rails/spec/spec/rails/example/controller_isolation_spec.rb +75 -0
  186. data/test/rspec-rails/spec/spec/rails/example/cookies_proxy_spec.rb +87 -0
  187. data/test/rspec-rails/spec/spec/rails/example/error_handling_spec.rb +90 -0
  188. data/test/rspec-rails/spec/spec/rails/example/example_group_factory_spec.rb +112 -0
  189. data/test/rspec-rails/spec/spec/rails/example/helper_example_group_spec.rb +233 -0
  190. data/test/rspec-rails/spec/spec/rails/example/model_example_group_spec.rb +20 -0
  191. data/test/rspec-rails/spec/spec/rails/example/routing_example_group_spec.rb +10 -0
  192. data/test/rspec-rails/spec/spec/rails/example/shared_routing_example_group_examples.rb +237 -0
  193. data/test/rspec-rails/spec/spec/rails/example/test_unit_assertion_accessibility_spec.rb +33 -0
  194. data/test/rspec-rails/spec/spec/rails/example/view_example_group_spec.rb +349 -0
  195. data/test/rspec-rails/spec/spec/rails/extensions/action_view_base_spec.rb +74 -0
  196. data/test/rspec-rails/spec/spec/rails/extensions/active_record_spec.rb +14 -0
  197. data/test/rspec-rails/spec/spec/rails/interop/testcase_spec.rb +70 -0
  198. data/test/rspec-rails/spec/spec/rails/matchers/ar_be_valid_spec.rb +19 -0
  199. data/test/rspec-rails/spec/spec/rails/matchers/assert_select_spec.rb +835 -0
  200. data/test/rspec-rails/spec/spec/rails/matchers/errors_on_spec.rb +37 -0
  201. data/test/rspec-rails/spec/spec/rails/matchers/have_text_spec.rb +69 -0
  202. data/test/rspec-rails/spec/spec/rails/matchers/include_text_spec.rb +62 -0
  203. data/test/rspec-rails/spec/spec/rails/matchers/redirect_to_spec.rb +253 -0
  204. data/test/rspec-rails/spec/spec/rails/matchers/render_template_spec.rb +208 -0
  205. data/test/rspec-rails/spec/spec/rails/matchers/should_change_spec.rb +15 -0
  206. data/test/rspec-rails/spec/spec/rails/mocks/ar_classes.rb +10 -0
  207. data/test/rspec-rails/spec/spec/rails/mocks/mock_model_spec.rb +106 -0
  208. data/test/rspec-rails/spec/spec/rails/mocks/stub_model_spec.rb +80 -0
  209. data/test/rspec-rails/spec/spec/rails/sample_modified_fixture.rb +8 -0
  210. data/test/rspec-rails/spec/spec/rails/sample_spec.rb +8 -0
  211. data/test/rspec-rails/spec/spec/rails/spec_spec.rb +11 -0
  212. data/test/rspec-rails/spec/spec_helper.rb +78 -0
  213. metadata +476 -0
@@ -0,0 +1,15 @@
1
+ require 'spec_helper'
2
+
3
+ describe "should change" do
4
+ describe "handling association proxies" do
5
+ it "should match expected collection with proxied collection" do
6
+ person = Person.create!(:name => 'David')
7
+ koala = person.animals.create!(:name => 'Koala')
8
+ zebra = person.animals.create!(:name => 'Zebra')
9
+
10
+ lambda {
11
+ person.animals.delete(koala)
12
+ }.should change{person.animals}.to([zebra])
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,10 @@
1
+ class MockableModel < ActiveRecord::Base
2
+ has_one :associated_model
3
+ end
4
+
5
+ class SubMockableModel < MockableModel
6
+ end
7
+
8
+ class AssociatedModel < ActiveRecord::Base
9
+ belongs_to :mockable_model
10
+ end
@@ -0,0 +1,106 @@
1
+ require 'spec_helper'
2
+ require File.dirname(__FILE__) + '/ar_classes'
3
+
4
+ describe "mock_model" do
5
+ describe "responding to interrogation" do
6
+ before(:each) do
7
+ @model = mock_model(SubMockableModel)
8
+ end
9
+ it "should say it is_a? if it is" do
10
+ @model.is_a?(SubMockableModel).should be(true)
11
+ end
12
+ it "should say it is_a? if it's ancestor is" do
13
+ @model.is_a?(MockableModel).should be(true)
14
+ end
15
+ it "should say it is kind_of? if it is" do
16
+ @model.kind_of?(SubMockableModel).should be(true)
17
+ end
18
+ it "should say it is kind_of? if it's ancestor is" do
19
+ @model.kind_of?(MockableModel).should be(true)
20
+ end
21
+ it "should say it is instance_of? if it is" do
22
+ @model.instance_of?(SubMockableModel).should be(true)
23
+ end
24
+ it "should not say it instance_of? if it isn't, even if it's ancestor is" do
25
+ @model.instance_of?(MockableModel).should be(false)
26
+ end
27
+ end
28
+
29
+ describe "with params" do
30
+ it "should not mutate its parameters" do
31
+ params = {:a => 'b'}
32
+ model = mock_model(MockableModel, params)
33
+ params.should == {:a => 'b'}
34
+ end
35
+ end
36
+
37
+ describe "with #id stubbed", :type => :view do
38
+ before(:each) do
39
+ @model = mock_model(MockableModel, :id => 1)
40
+ end
41
+ it "should be named using the stubbed id value" do
42
+ @model.instance_variable_get(:@name).should == "MockableModel_1"
43
+ end
44
+ it "should return string of id value for to_param" do
45
+ @model.to_param.should == "1"
46
+ end
47
+ end
48
+
49
+ describe "as association", :type => :view do
50
+ before(:each) do
51
+ @real = AssociatedModel.create!
52
+ @mock_model = mock_model(MockableModel)
53
+ @real.mockable_model = @mock_model
54
+ end
55
+
56
+ it "should pass associated_model == mock" do
57
+ @mock_model.should == @real.mockable_model
58
+ end
59
+
60
+ it "should pass mock == associated_model" do
61
+ @real.mockable_model.should == @mock_model
62
+ end
63
+ end
64
+
65
+ describe "with :null_object => true", :type => :view do
66
+ before(:each) do
67
+ @model = mock_model(MockableModel, :null_object => true, :mocked_method => "mocked")
68
+ end
69
+
70
+ it "should be able to mock methods" do
71
+ @model.mocked_method.should == "mocked"
72
+ end
73
+ it "should return itself to unmocked methods" do
74
+ @model.unmocked_method.should equal(@model)
75
+ end
76
+ end
77
+
78
+ describe "#as_null_object", :type => :view do
79
+ before(:each) do
80
+ @model = mock_model(MockableModel, :mocked_method => "mocked").as_null_object
81
+ end
82
+
83
+ it "should be able to mock methods" do
84
+ @model.mocked_method.should == "mocked"
85
+ end
86
+ it "should return itself to unmocked methods" do
87
+ @model.unmocked_method.should equal(@model)
88
+ end
89
+ end
90
+
91
+ describe "#as_new_record" do
92
+ it "should say it is a new record" do
93
+ mock_model(MockableModel).as_new_record.should be_new_record
94
+ end
95
+
96
+ it "should have a nil id" do
97
+ mock_model(MockableModel).as_new_record.id.should be(nil)
98
+ end
99
+
100
+ it "should return nil for #to_param" do
101
+ mock_model(MockableModel).as_new_record.to_param.should be(nil)
102
+ end
103
+ end
104
+ end
105
+
106
+
@@ -0,0 +1,80 @@
1
+ require 'spec_helper'
2
+ require File.dirname(__FILE__) + '/ar_classes'
3
+
4
+ describe "stub_model" do
5
+ describe "defaults" do
6
+ it "should have an id" do
7
+ stub_model(MockableModel).id.should be > 0
8
+ end
9
+
10
+ it "should say it is not a new record" do
11
+ stub_model(MockableModel).should_not be_new_record
12
+ end
13
+ end
14
+
15
+ it "should accept a stub id" do
16
+ stub_model(MockableModel, :id => 37).id.should == 37
17
+ end
18
+
19
+ it "should say it is a new record when id is set to nil" do
20
+ stub_model(MockableModel, :id => nil).should be_new_record
21
+ end
22
+
23
+ it "should accept any arbitrary stub" do
24
+ stub_model(MockableModel, :foo => "bar").foo.should == "bar"
25
+ end
26
+
27
+ it "should accept a stub for save" do
28
+ stub_model(MockableModel, :save => false).save.should be(false)
29
+ end
30
+
31
+ describe "#as_new_record" do
32
+ it "should say it is a new record" do
33
+ stub_model(MockableModel).as_new_record.should be_new_record
34
+ end
35
+
36
+ it "should have a nil id" do
37
+ stub_model(MockableModel).as_new_record.id.should be(nil)
38
+ end
39
+ end
40
+
41
+ it "should raise when hitting the db" do
42
+ lambda do
43
+ model = stub_model(MockableModel, :changed => true, :attributes_with_quotes => {'this' => 'that'})
44
+ model.save
45
+ end.should raise_error(Spec::Rails::IllegalDataAccessException, /stubbed models are not allowed to access the database/)
46
+ end
47
+
48
+ it "should increment the id" do
49
+ first = stub_model(MockableModel)
50
+ second = stub_model(MockableModel)
51
+ second.id.should == (first.id + 1)
52
+ end
53
+
54
+ describe "as association" do
55
+ before(:each) do
56
+ @real = AssociatedModel.create!
57
+ @stub_model = stub_model(MockableModel)
58
+ @real.mockable_model = @stub_model
59
+ end
60
+
61
+ it "should pass associated_model == mock" do
62
+ @stub_model.should == @real.mockable_model
63
+ end
64
+
65
+ it "should pass mock == associated_model" do
66
+ @real.mockable_model.should == @stub_model
67
+ end
68
+ end
69
+
70
+ describe "with a block" do
71
+ it "should yield the model" do
72
+ model = stub_model(MockableModel) do |block_arg|
73
+ @block_arg = block_arg
74
+ end
75
+ model.should be(@block_arg)
76
+ end
77
+ end
78
+ end
79
+
80
+
@@ -0,0 +1,8 @@
1
+ require 'spec_helper'
2
+
3
+ describe "A sample spec", :type => :model do
4
+ fixtures :animals
5
+ it "should pass" do
6
+ animals(:pig).name.should == "Piggy"
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'spec_helper'
2
+
3
+ describe "A sample spec", :type => :model do
4
+ fixtures :animals
5
+ it "should pass" do
6
+ animals(:pig).name.should == "Pig"
7
+ end
8
+ end
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+
3
+ describe "script/spec file" do
4
+ it "should run a spec" do
5
+ dir = File.dirname(__FILE__)
6
+ output = `#{RAILS_ROOT}/script/spec #{dir}/sample_spec.rb`
7
+ unless $?.exitstatus == 0
8
+ flunk "command 'script/spec spec/sample_spec' failed\n#{output}"
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,78 @@
1
+ $LOAD_PATH.unshift '../rspec/lib'
2
+ $LOAD_PATH.unshift '../../../'
3
+ $LOAD_PATH.unshift 'spec/resources/controllers'
4
+ $LOAD_PATH.unshift 'spec/resources/helpers'
5
+
6
+ require '../../../spec/spec_helper'
7
+
8
+ require 'spec/resources/controllers/application'
9
+ require 'spec/resources/controllers/render_spec_controller'
10
+ require 'spec/resources/controllers/controller_spec_controller'
11
+ require 'spec/resources/controllers/rjs_spec_controller'
12
+ require 'spec/resources/controllers/redirect_spec_controller'
13
+ require 'spec/resources/controllers/action_view_base_spec_controller'
14
+ require 'spec/resources/helpers/addition_helper'
15
+ require 'spec/resources/helpers/explicit_helper'
16
+ require 'spec/resources/helpers/more_explicit_helper'
17
+ require 'spec/resources/helpers/view_spec_helper'
18
+ require 'spec/resources/helpers/plugin_application_helper'
19
+ require 'spec/resources/models/animal'
20
+ require 'spec/resources/models/person'
21
+ require 'spec/resources/models/thing'
22
+
23
+ unless ActionController::Routing.controller_paths.include?('spec/resources/controllers')
24
+ ActionController::Routing.instance_eval {@possible_controllers = nil}
25
+ ActionController::Routing.controller_paths << 'spec/resources/controllers'
26
+ end
27
+
28
+ module Spec
29
+ module Rails
30
+ module Example
31
+ class ViewExampleGroupController
32
+ prepend_view_path 'spec/resources/views'
33
+ end
34
+ end
35
+ end
36
+ end
37
+
38
+ def fail()
39
+ raise_error(Spec::Expectations::ExpectationNotMetError)
40
+ end
41
+
42
+ def fail_with(message)
43
+ raise_error(Spec::Expectations::ExpectationNotMetError,message)
44
+ end
45
+
46
+ class Proc
47
+ def should_pass
48
+ lambda { self.call }.should_not raise_error
49
+ end
50
+ end
51
+
52
+ ActionController::Routing::Routes.draw do |map|
53
+ map.connect 'action_with_method_restriction', :controller => 'redirect_spec', :action => 'action_with_method_restriction', :conditions => { :method => :get }
54
+ map.connect 'action_to_redirect_to_action_with_method_restriction', :controller => 'redirect_spec', :action => 'action_to_redirect_to_action_with_method_restriction'
55
+
56
+ map.resources :rspec_on_rails_specs
57
+ map.custom_route 'custom_route', :controller => 'custom_route_spec', :action => 'custom_route'
58
+ map.connect ':controller/:action/:id'
59
+ end
60
+
61
+ module HelperMethods
62
+ def method_in_module_included_in_configuration
63
+ end
64
+ end
65
+
66
+ module HelperMacros
67
+ def accesses_configured_helper_methods
68
+ it "has access to methods in modules included in configuration" do
69
+ method_in_module_included_in_configuration
70
+ end
71
+ end
72
+ end
73
+
74
+ Spec::Runner.configure do |config|
75
+ config.include HelperMethods
76
+ config.extend HelperMacros
77
+ end
78
+
metadata ADDED
@@ -0,0 +1,476 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: exception2db
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 1
9
+ version: 0.0.1
10
+ platform: ruby
11
+ authors:
12
+ - Neeraj Singh
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2010-08-20 00:00:00 -04:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: will_paginate
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 3
29
+ - 0
30
+ - pre2
31
+ version: 3.0.pre2
32
+ type: :runtime
33
+ version_requirements: *id001
34
+ - !ruby/object:Gem::Dependency
35
+ name: hoptoad_notifier
36
+ prerelease: false
37
+ requirement: &id002 !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ segments:
42
+ - 2
43
+ - 3
44
+ - 5
45
+ version: 2.3.5
46
+ type: :runtime
47
+ version_requirements: *id002
48
+ - !ruby/object:Gem::Dependency
49
+ name: flexmock
50
+ prerelease: false
51
+ requirement: &id003 !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ segments:
56
+ - 0
57
+ - 8
58
+ - 7
59
+ version: 0.8.7
60
+ type: :development
61
+ version_requirements: *id003
62
+ - !ruby/object:Gem::Dependency
63
+ name: shoulda
64
+ prerelease: false
65
+ requirement: &id004 !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ segments:
70
+ - 2
71
+ - 11
72
+ - 3
73
+ version: 2.11.3
74
+ type: :development
75
+ version_requirements: *id004
76
+ - !ruby/object:Gem::Dependency
77
+ name: factory_girl_rails
78
+ prerelease: false
79
+ requirement: &id005 !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ segments:
84
+ - 0
85
+ version: "0"
86
+ type: :development
87
+ version_requirements: *id005
88
+ - !ruby/object:Gem::Dependency
89
+ name: nokogiri
90
+ prerelease: false
91
+ requirement: &id006 !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ segments:
96
+ - 1
97
+ - 4
98
+ - 3
99
+ - 1
100
+ version: 1.4.3.1
101
+ type: :development
102
+ version_requirements: *id006
103
+ description: Store exceptions in local datbase using Hoptoad API
104
+ email: neerajdotname@gmail.com
105
+ executables: []
106
+
107
+ extensions: []
108
+
109
+ extra_rdoc_files: []
110
+
111
+ files:
112
+ - MIT-LICENSE
113
+ - Rakefile
114
+ - app/controllers/exception2db/main_controller.rb
115
+ - app/models/e2db.rb
116
+ - app/views/exception2db/main/index.html.erb
117
+ - app/views/exception2db/main/show.html.erb
118
+ - app/views/layouts/exception2db.html.erb
119
+ - config/routes.rb
120
+ - init.rb
121
+ - lib/css/style.css
122
+ - lib/exception2db.rb
123
+ - lib/exception2db/config.rb
124
+ - lib/exception2db/railtie.rb
125
+ - lib/exception2db/util.rb
126
+ - lib/exception2db/version.rb
127
+ - lib/js/app.js
128
+ - test/error_xml.rb
129
+ - test/rails_root/Rakefile
130
+ - test/rails_root/app/controllers/application_controller.rb
131
+ - test/rails_root/app/controllers/articles_controller.rb
132
+ - test/rails_root/app/models/article.rb
133
+ - test/rails_root/app/models/city.rb
134
+ - test/rails_root/app/models/comment.rb
135
+ - test/rails_root/app/models/tech_magazine.rb
136
+ - test/rails_root/app/models/vehicle/car.rb
137
+ - test/rails_root/app/models/vehicle/door.rb
138
+ - test/rails_root/app/models/vehicle/engine.rb
139
+ - test/rails_root/config/boot.rb
140
+ - test/rails_root/config/database.yml
141
+ - test/rails_root/config/environment.rb
142
+ - test/rails_root/config/environments/cucumber.rb
143
+ - test/rails_root/config/environments/development.rb
144
+ - test/rails_root/config/environments/test.rb
145
+ - test/rails_root/config/initializers/new_rails_defaults.rb
146
+ - test/rails_root/config/routes.rb
147
+ - test/rails_root/db/migrate/20090809061114_create_tables.rb
148
+ - test/rails_root/db/schema.rb
149
+ - test/rails_root/db/sqlite3.db
150
+ - test/rails_root/log/cucumber.log
151
+ - test/rails_root/log/development.log
152
+ - test/rails_root/log/test.log
153
+ - test/rails_root/script/console
154
+ - test/rails_root/script/dbconsole
155
+ - test/rails_root/script/runner
156
+ - test/rails_root/script/server
157
+ - test/rspec-rails/Contribute.rdoc
158
+ - test/rspec-rails/History.rdoc
159
+ - test/rspec-rails/License.txt
160
+ - test/rspec-rails/Manifest.txt
161
+ - test/rspec-rails/README.rdoc
162
+ - test/rspec-rails/Rakefile
163
+ - test/rspec-rails/TODO.txt
164
+ - test/rspec-rails/Upgrade.rdoc
165
+ - test/rspec-rails/generators/integration_spec/integration_spec_generator.rb
166
+ - test/rspec-rails/generators/integration_spec/templates/integration_spec.rb
167
+ - test/rspec-rails/generators/rspec/CHANGES
168
+ - test/rspec-rails/generators/rspec/rspec_generator.rb
169
+ - test/rspec-rails/generators/rspec/templates/previous_failures.txt
170
+ - test/rspec-rails/generators/rspec/templates/rcov.opts
171
+ - test/rspec-rails/generators/rspec/templates/rspec.rake
172
+ - test/rspec-rails/generators/rspec/templates/script/autospec
173
+ - test/rspec-rails/generators/rspec/templates/script/spec
174
+ - test/rspec-rails/generators/rspec/templates/spec.opts
175
+ - test/rspec-rails/generators/rspec/templates/spec_helper.rb
176
+ - test/rspec-rails/generators/rspec_controller/USAGE
177
+ - test/rspec-rails/generators/rspec_controller/rspec_controller_generator.rb
178
+ - test/rspec-rails/generators/rspec_controller/templates/controller_spec.rb
179
+ - test/rspec-rails/generators/rspec_controller/templates/helper_spec.rb
180
+ - test/rspec-rails/generators/rspec_controller/templates/view_spec.rb
181
+ - test/rspec-rails/generators/rspec_default_values.rb
182
+ - test/rspec-rails/generators/rspec_model/USAGE
183
+ - test/rspec-rails/generators/rspec_model/rspec_model_generator.rb
184
+ - test/rspec-rails/generators/rspec_model/templates/model_spec.rb
185
+ - test/rspec-rails/generators/rspec_scaffold/rspec_scaffold_generator.rb
186
+ - test/rspec-rails/generators/rspec_scaffold/templates/controller_spec.rb
187
+ - test/rspec-rails/generators/rspec_scaffold/templates/edit_erb_spec.rb
188
+ - test/rspec-rails/generators/rspec_scaffold/templates/helper_spec.rb
189
+ - test/rspec-rails/generators/rspec_scaffold/templates/index_erb_spec.rb
190
+ - test/rspec-rails/generators/rspec_scaffold/templates/new_erb_spec.rb
191
+ - test/rspec-rails/generators/rspec_scaffold/templates/routing_spec.rb
192
+ - test/rspec-rails/generators/rspec_scaffold/templates/show_erb_spec.rb
193
+ - test/rspec-rails/init.rb
194
+ - test/rspec-rails/lib/autotest/discover.rb
195
+ - test/rspec-rails/lib/autotest/rails_rspec.rb
196
+ - test/rspec-rails/lib/spec/rails.rb
197
+ - test/rspec-rails/lib/spec/rails/example.rb
198
+ - test/rspec-rails/lib/spec/rails/example/assigns_hash_proxy.rb
199
+ - test/rspec-rails/lib/spec/rails/example/controller_example_group.rb
200
+ - test/rspec-rails/lib/spec/rails/example/cookies_proxy.rb
201
+ - test/rspec-rails/lib/spec/rails/example/functional_example_group.rb
202
+ - test/rspec-rails/lib/spec/rails/example/helper_example_group.rb
203
+ - test/rspec-rails/lib/spec/rails/example/integration_example_group.rb
204
+ - test/rspec-rails/lib/spec/rails/example/model_example_group.rb
205
+ - test/rspec-rails/lib/spec/rails/example/render_observer.rb
206
+ - test/rspec-rails/lib/spec/rails/example/routing_example_group.rb
207
+ - test/rspec-rails/lib/spec/rails/example/routing_helpers.rb
208
+ - test/rspec-rails/lib/spec/rails/example/view_example_group.rb
209
+ - test/rspec-rails/lib/spec/rails/extensions.rb
210
+ - test/rspec-rails/lib/spec/rails/extensions/action_controller/rescue.rb
211
+ - test/rspec-rails/lib/spec/rails/extensions/action_controller/test_case.rb
212
+ - test/rspec-rails/lib/spec/rails/extensions/action_controller/test_response.rb
213
+ - test/rspec-rails/lib/spec/rails/extensions/action_view/base.rb
214
+ - test/rspec-rails/lib/spec/rails/extensions/active_record/base.rb
215
+ - test/rspec-rails/lib/spec/rails/extensions/active_support/test_case.rb
216
+ - test/rspec-rails/lib/spec/rails/extensions/spec/matchers/have.rb
217
+ - test/rspec-rails/lib/spec/rails/extensions/spec/runner/configuration.rb
218
+ - test/rspec-rails/lib/spec/rails/interop/testcase.rb
219
+ - test/rspec-rails/lib/spec/rails/matchers.rb
220
+ - test/rspec-rails/lib/spec/rails/matchers/ar_be_valid.rb
221
+ - test/rspec-rails/lib/spec/rails/matchers/assert_select.rb
222
+ - test/rspec-rails/lib/spec/rails/matchers/change.rb
223
+ - test/rspec-rails/lib/spec/rails/matchers/have_text.rb
224
+ - test/rspec-rails/lib/spec/rails/matchers/include_text.rb
225
+ - test/rspec-rails/lib/spec/rails/matchers/redirect_to.rb
226
+ - test/rspec-rails/lib/spec/rails/matchers/render_template.rb
227
+ - test/rspec-rails/lib/spec/rails/matchers/route_to.rb
228
+ - test/rspec-rails/lib/spec/rails/mocks.rb
229
+ - test/rspec-rails/lib/spec/rails/version.rb
230
+ - test/rspec-rails/spec/autotest/mappings_spec.rb
231
+ - test/rspec-rails/spec/rails_suite.rb
232
+ - test/rspec-rails/spec/resources/controllers/action_view_base_spec_controller.rb
233
+ - test/rspec-rails/spec/resources/controllers/application.rb
234
+ - test/rspec-rails/spec/resources/controllers/controller_spec_controller.rb
235
+ - test/rspec-rails/spec/resources/controllers/example.txt
236
+ - test/rspec-rails/spec/resources/controllers/redirect_spec_controller.rb
237
+ - test/rspec-rails/spec/resources/controllers/render_spec_controller.rb
238
+ - test/rspec-rails/spec/resources/controllers/rjs_spec_controller.rb
239
+ - test/rspec-rails/spec/resources/helpers/addition_helper.rb
240
+ - test/rspec-rails/spec/resources/helpers/explicit_helper.rb
241
+ - test/rspec-rails/spec/resources/helpers/more_explicit_helper.rb
242
+ - test/rspec-rails/spec/resources/helpers/plugin_application_helper.rb
243
+ - test/rspec-rails/spec/resources/helpers/view_spec_helper.rb
244
+ - test/rspec-rails/spec/resources/models/animal.rb
245
+ - test/rspec-rails/spec/resources/models/person.rb
246
+ - test/rspec-rails/spec/resources/models/thing.rb
247
+ - test/rspec-rails/spec/resources/views/controller_spec/_partial.html.erb
248
+ - test/rspec-rails/spec/resources/views/controller_spec/action_setting_flash_after_session_reset.html.erb
249
+ - test/rspec-rails/spec/resources/views/controller_spec/action_setting_flash_before_session_reset.html.erb
250
+ - test/rspec-rails/spec/resources/views/controller_spec/action_setting_the_assigns_hash.html.erb
251
+ - test/rspec-rails/spec/resources/views/controller_spec/action_with_errors_in_template.html.erb
252
+ - test/rspec-rails/spec/resources/views/controller_spec/action_with_template.html.erb
253
+ - test/rspec-rails/spec/resources/views/controller_spec/non_existent_action_with_existent_template.html.erb
254
+ - test/rspec-rails/spec/resources/views/layouts/application.html.erb
255
+ - test/rspec-rails/spec/resources/views/layouts/simple.html.erb
256
+ - test/rspec-rails/spec/resources/views/objects/_object.html.erb
257
+ - test/rspec-rails/spec/resources/views/render_spec/_a_partial.html.erb
258
+ - test/rspec-rails/spec/resources/views/render_spec/action_with_alternate_layout.html.erb
259
+ - test/rspec-rails/spec/resources/views/render_spec/some_action.html.erb
260
+ - test/rspec-rails/spec/resources/views/render_spec/some_action.js.rjs
261
+ - test/rspec-rails/spec/resources/views/rjs_spec/_replacement_partial.html.erb
262
+ - test/rspec-rails/spec/resources/views/rjs_spec/hide_div.js.rjs
263
+ - test/rspec-rails/spec/resources/views/rjs_spec/hide_page_element.js.rjs
264
+ - test/rspec-rails/spec/resources/views/rjs_spec/insert_html.js.rjs
265
+ - test/rspec-rails/spec/resources/views/rjs_spec/replace.js.rjs
266
+ - test/rspec-rails/spec/resources/views/rjs_spec/replace_html.js.rjs
267
+ - test/rspec-rails/spec/resources/views/rjs_spec/replace_html_with_partial.js.rjs
268
+ - test/rspec-rails/spec/resources/views/rjs_spec/visual_effect.js.rjs
269
+ - test/rspec-rails/spec/resources/views/rjs_spec/visual_toggle_effect.js.rjs
270
+ - test/rspec-rails/spec/resources/views/tag_spec/no_tags.html.erb
271
+ - test/rspec-rails/spec/resources/views/tag_spec/single_div_with_no_attributes.html.erb
272
+ - test/rspec-rails/spec/resources/views/tag_spec/single_div_with_one_attribute.html.erb
273
+ - test/rspec-rails/spec/resources/views/view_spec/_partial.html.erb
274
+ - test/rspec-rails/spec/resources/views/view_spec/_partial_used_twice.html.erb
275
+ - test/rspec-rails/spec/resources/views/view_spec/_partial_with_local_variable.html.erb
276
+ - test/rspec-rails/spec/resources/views/view_spec/_partial_with_sub_partial.html.erb
277
+ - test/rspec-rails/spec/resources/views/view_spec/_spacer.html.erb
278
+ - test/rspec-rails/spec/resources/views/view_spec/accessor.html.erb
279
+ - test/rspec-rails/spec/resources/views/view_spec/block_helper.html.erb
280
+ - test/rspec-rails/spec/resources/views/view_spec/entry_form.html.erb
281
+ - test/rspec-rails/spec/resources/views/view_spec/explicit_helper.html.erb
282
+ - test/rspec-rails/spec/resources/views/view_spec/foo/show.html.erb
283
+ - test/rspec-rails/spec/resources/views/view_spec/implicit_helper.html.erb
284
+ - test/rspec-rails/spec/resources/views/view_spec/multiple_helpers.html.erb
285
+ - test/rspec-rails/spec/resources/views/view_spec/path_params.html.erb
286
+ - test/rspec-rails/spec/resources/views/view_spec/should_not_receive.html.erb
287
+ - test/rspec-rails/spec/resources/views/view_spec/template_with_partial.html.erb
288
+ - test/rspec-rails/spec/resources/views/view_spec/template_with_partial_using_collection.html.erb
289
+ - test/rspec-rails/spec/resources/views/view_spec/template_with_partial_with_array.html.erb
290
+ - test/rspec-rails/spec/resources/views/view_spec/view_helpers.html.erb
291
+ - test/rspec-rails/spec/spec/rails/example/assigns_hash_proxy_spec.rb
292
+ - test/rspec-rails/spec/spec/rails/example/configuration_spec.rb
293
+ - test/rspec-rails/spec/spec/rails/example/controller_example_group_spec.rb
294
+ - test/rspec-rails/spec/spec/rails/example/controller_isolation_spec.rb
295
+ - test/rspec-rails/spec/spec/rails/example/cookies_proxy_spec.rb
296
+ - test/rspec-rails/spec/spec/rails/example/error_handling_spec.rb
297
+ - test/rspec-rails/spec/spec/rails/example/example_group_factory_spec.rb
298
+ - test/rspec-rails/spec/spec/rails/example/helper_example_group_spec.rb
299
+ - test/rspec-rails/spec/spec/rails/example/model_example_group_spec.rb
300
+ - test/rspec-rails/spec/spec/rails/example/routing_example_group_spec.rb
301
+ - test/rspec-rails/spec/spec/rails/example/shared_routing_example_group_examples.rb
302
+ - test/rspec-rails/spec/spec/rails/example/test_unit_assertion_accessibility_spec.rb
303
+ - test/rspec-rails/spec/spec/rails/example/view_example_group_spec.rb
304
+ - test/rspec-rails/spec/spec/rails/extensions/action_view_base_spec.rb
305
+ - test/rspec-rails/spec/spec/rails/extensions/active_record_spec.rb
306
+ - test/rspec-rails/spec/spec/rails/interop/testcase_spec.rb
307
+ - test/rspec-rails/spec/spec/rails/matchers/ar_be_valid_spec.rb
308
+ - test/rspec-rails/spec/spec/rails/matchers/assert_select_spec.rb
309
+ - test/rspec-rails/spec/spec/rails/matchers/errors_on_spec.rb
310
+ - test/rspec-rails/spec/spec/rails/matchers/have_text_spec.rb
311
+ - test/rspec-rails/spec/spec/rails/matchers/include_text_spec.rb
312
+ - test/rspec-rails/spec/spec/rails/matchers/redirect_to_spec.rb
313
+ - test/rspec-rails/spec/spec/rails/matchers/render_template_spec.rb
314
+ - test/rspec-rails/spec/spec/rails/matchers/should_change_spec.rb
315
+ - test/rspec-rails/spec/spec/rails/mocks/ar_classes.rb
316
+ - test/rspec-rails/spec/spec/rails/mocks/mock_model_spec.rb
317
+ - test/rspec-rails/spec/spec/rails/mocks/stub_model_spec.rb
318
+ - test/rspec-rails/spec/spec/rails/sample_modified_fixture.rb
319
+ - test/rspec-rails/spec/spec/rails/sample_spec.rb
320
+ - test/rspec-rails/spec/spec/rails/spec_spec.rb
321
+ - test/rspec-rails/spec/spec_helper.rb
322
+ has_rdoc: true
323
+ homepage: http://github.com/neerajdotname/exception2db
324
+ licenses: []
325
+
326
+ post_install_message:
327
+ rdoc_options:
328
+ - --charset=UTF-8
329
+ require_paths:
330
+ - lib
331
+ required_ruby_version: !ruby/object:Gem::Requirement
332
+ requirements:
333
+ - - ">="
334
+ - !ruby/object:Gem::Version
335
+ segments:
336
+ - 0
337
+ version: "0"
338
+ required_rubygems_version: !ruby/object:Gem::Requirement
339
+ requirements:
340
+ - - ">="
341
+ - !ruby/object:Gem::Version
342
+ segments:
343
+ - 0
344
+ version: "0"
345
+ requirements: []
346
+
347
+ rubyforge_project:
348
+ rubygems_version: 1.3.6
349
+ signing_key:
350
+ specification_version: 3
351
+ summary: Store exceptions in local datbase using Hoptoad API
352
+ test_files:
353
+ - spec/exception2db_spec.rb
354
+ - spec/spec_helper.rb
355
+ - test/error_xml.rb
356
+ - test/rails_root/app/controllers/application_controller.rb
357
+ - test/rails_root/app/controllers/articles_controller.rb
358
+ - test/rails_root/app/models/article.rb
359
+ - test/rails_root/app/models/city.rb
360
+ - test/rails_root/app/models/comment.rb
361
+ - test/rails_root/app/models/tech_magazine.rb
362
+ - test/rails_root/app/models/vehicle/car.rb
363
+ - test/rails_root/app/models/vehicle/door.rb
364
+ - test/rails_root/app/models/vehicle/engine.rb
365
+ - test/rails_root/config/boot.rb
366
+ - test/rails_root/config/environment.rb
367
+ - test/rails_root/config/environments/cucumber.rb
368
+ - test/rails_root/config/environments/development.rb
369
+ - test/rails_root/config/environments/test.rb
370
+ - test/rails_root/config/initializers/new_rails_defaults.rb
371
+ - test/rails_root/config/routes.rb
372
+ - test/rails_root/db/migrate/20090809061114_create_tables.rb
373
+ - test/rails_root/db/schema.rb
374
+ - test/rspec-rails/generators/integration_spec/integration_spec_generator.rb
375
+ - test/rspec-rails/generators/integration_spec/templates/integration_spec.rb
376
+ - test/rspec-rails/generators/rspec/rspec_generator.rb
377
+ - test/rspec-rails/generators/rspec/templates/spec_helper.rb
378
+ - test/rspec-rails/generators/rspec_controller/rspec_controller_generator.rb
379
+ - test/rspec-rails/generators/rspec_controller/templates/controller_spec.rb
380
+ - test/rspec-rails/generators/rspec_controller/templates/helper_spec.rb
381
+ - test/rspec-rails/generators/rspec_controller/templates/view_spec.rb
382
+ - test/rspec-rails/generators/rspec_default_values.rb
383
+ - test/rspec-rails/generators/rspec_model/rspec_model_generator.rb
384
+ - test/rspec-rails/generators/rspec_model/templates/model_spec.rb
385
+ - test/rspec-rails/generators/rspec_scaffold/rspec_scaffold_generator.rb
386
+ - test/rspec-rails/generators/rspec_scaffold/templates/controller_spec.rb
387
+ - test/rspec-rails/generators/rspec_scaffold/templates/edit_erb_spec.rb
388
+ - test/rspec-rails/generators/rspec_scaffold/templates/helper_spec.rb
389
+ - test/rspec-rails/generators/rspec_scaffold/templates/index_erb_spec.rb
390
+ - test/rspec-rails/generators/rspec_scaffold/templates/new_erb_spec.rb
391
+ - test/rspec-rails/generators/rspec_scaffold/templates/routing_spec.rb
392
+ - test/rspec-rails/generators/rspec_scaffold/templates/show_erb_spec.rb
393
+ - test/rspec-rails/init.rb
394
+ - test/rspec-rails/lib/autotest/discover.rb
395
+ - test/rspec-rails/lib/autotest/rails_rspec.rb
396
+ - test/rspec-rails/lib/spec/rails/example/assigns_hash_proxy.rb
397
+ - test/rspec-rails/lib/spec/rails/example/controller_example_group.rb
398
+ - test/rspec-rails/lib/spec/rails/example/cookies_proxy.rb
399
+ - test/rspec-rails/lib/spec/rails/example/functional_example_group.rb
400
+ - test/rspec-rails/lib/spec/rails/example/helper_example_group.rb
401
+ - test/rspec-rails/lib/spec/rails/example/integration_example_group.rb
402
+ - test/rspec-rails/lib/spec/rails/example/model_example_group.rb
403
+ - test/rspec-rails/lib/spec/rails/example/render_observer.rb
404
+ - test/rspec-rails/lib/spec/rails/example/routing_example_group.rb
405
+ - test/rspec-rails/lib/spec/rails/example/routing_helpers.rb
406
+ - test/rspec-rails/lib/spec/rails/example/view_example_group.rb
407
+ - test/rspec-rails/lib/spec/rails/example.rb
408
+ - test/rspec-rails/lib/spec/rails/extensions/action_controller/rescue.rb
409
+ - test/rspec-rails/lib/spec/rails/extensions/action_controller/test_case.rb
410
+ - test/rspec-rails/lib/spec/rails/extensions/action_controller/test_response.rb
411
+ - test/rspec-rails/lib/spec/rails/extensions/action_view/base.rb
412
+ - test/rspec-rails/lib/spec/rails/extensions/active_record/base.rb
413
+ - test/rspec-rails/lib/spec/rails/extensions/active_support/test_case.rb
414
+ - test/rspec-rails/lib/spec/rails/extensions/spec/matchers/have.rb
415
+ - test/rspec-rails/lib/spec/rails/extensions/spec/runner/configuration.rb
416
+ - test/rspec-rails/lib/spec/rails/extensions.rb
417
+ - test/rspec-rails/lib/spec/rails/interop/testcase.rb
418
+ - test/rspec-rails/lib/spec/rails/matchers/ar_be_valid.rb
419
+ - test/rspec-rails/lib/spec/rails/matchers/assert_select.rb
420
+ - test/rspec-rails/lib/spec/rails/matchers/change.rb
421
+ - test/rspec-rails/lib/spec/rails/matchers/have_text.rb
422
+ - test/rspec-rails/lib/spec/rails/matchers/include_text.rb
423
+ - test/rspec-rails/lib/spec/rails/matchers/redirect_to.rb
424
+ - test/rspec-rails/lib/spec/rails/matchers/render_template.rb
425
+ - test/rspec-rails/lib/spec/rails/matchers/route_to.rb
426
+ - test/rspec-rails/lib/spec/rails/matchers.rb
427
+ - test/rspec-rails/lib/spec/rails/mocks.rb
428
+ - test/rspec-rails/lib/spec/rails/version.rb
429
+ - test/rspec-rails/lib/spec/rails.rb
430
+ - test/rspec-rails/spec/autotest/mappings_spec.rb
431
+ - test/rspec-rails/spec/rails_suite.rb
432
+ - test/rspec-rails/spec/resources/controllers/action_view_base_spec_controller.rb
433
+ - test/rspec-rails/spec/resources/controllers/application.rb
434
+ - test/rspec-rails/spec/resources/controllers/controller_spec_controller.rb
435
+ - test/rspec-rails/spec/resources/controllers/redirect_spec_controller.rb
436
+ - test/rspec-rails/spec/resources/controllers/render_spec_controller.rb
437
+ - test/rspec-rails/spec/resources/controllers/rjs_spec_controller.rb
438
+ - test/rspec-rails/spec/resources/helpers/addition_helper.rb
439
+ - test/rspec-rails/spec/resources/helpers/explicit_helper.rb
440
+ - test/rspec-rails/spec/resources/helpers/more_explicit_helper.rb
441
+ - test/rspec-rails/spec/resources/helpers/plugin_application_helper.rb
442
+ - test/rspec-rails/spec/resources/helpers/view_spec_helper.rb
443
+ - test/rspec-rails/spec/resources/models/animal.rb
444
+ - test/rspec-rails/spec/resources/models/person.rb
445
+ - test/rspec-rails/spec/resources/models/thing.rb
446
+ - test/rspec-rails/spec/spec/rails/example/assigns_hash_proxy_spec.rb
447
+ - test/rspec-rails/spec/spec/rails/example/configuration_spec.rb
448
+ - test/rspec-rails/spec/spec/rails/example/controller_example_group_spec.rb
449
+ - test/rspec-rails/spec/spec/rails/example/controller_isolation_spec.rb
450
+ - test/rspec-rails/spec/spec/rails/example/cookies_proxy_spec.rb
451
+ - test/rspec-rails/spec/spec/rails/example/error_handling_spec.rb
452
+ - test/rspec-rails/spec/spec/rails/example/example_group_factory_spec.rb
453
+ - test/rspec-rails/spec/spec/rails/example/helper_example_group_spec.rb
454
+ - test/rspec-rails/spec/spec/rails/example/model_example_group_spec.rb
455
+ - test/rspec-rails/spec/spec/rails/example/routing_example_group_spec.rb
456
+ - test/rspec-rails/spec/spec/rails/example/shared_routing_example_group_examples.rb
457
+ - test/rspec-rails/spec/spec/rails/example/test_unit_assertion_accessibility_spec.rb
458
+ - test/rspec-rails/spec/spec/rails/example/view_example_group_spec.rb
459
+ - test/rspec-rails/spec/spec/rails/extensions/action_view_base_spec.rb
460
+ - test/rspec-rails/spec/spec/rails/extensions/active_record_spec.rb
461
+ - test/rspec-rails/spec/spec/rails/interop/testcase_spec.rb
462
+ - test/rspec-rails/spec/spec/rails/matchers/ar_be_valid_spec.rb
463
+ - test/rspec-rails/spec/spec/rails/matchers/assert_select_spec.rb
464
+ - test/rspec-rails/spec/spec/rails/matchers/errors_on_spec.rb
465
+ - test/rspec-rails/spec/spec/rails/matchers/have_text_spec.rb
466
+ - test/rspec-rails/spec/spec/rails/matchers/include_text_spec.rb
467
+ - test/rspec-rails/spec/spec/rails/matchers/redirect_to_spec.rb
468
+ - test/rspec-rails/spec/spec/rails/matchers/render_template_spec.rb
469
+ - test/rspec-rails/spec/spec/rails/matchers/should_change_spec.rb
470
+ - test/rspec-rails/spec/spec/rails/mocks/ar_classes.rb
471
+ - test/rspec-rails/spec/spec/rails/mocks/mock_model_spec.rb
472
+ - test/rspec-rails/spec/spec/rails/mocks/stub_model_spec.rb
473
+ - test/rspec-rails/spec/spec/rails/sample_modified_fixture.rb
474
+ - test/rspec-rails/spec/spec/rails/sample_spec.rb
475
+ - test/rspec-rails/spec/spec/rails/spec_spec.rb
476
+ - test/rspec-rails/spec/spec_helper.rb