Advertisement
Guest User

Untitled

a guest
Mar 15th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.32 KB | None | 0 0
  1. rake spec:requests --trace
  2.  
  3. `/Users/carl/.rvm/rubies/ruby-1.9.2-head/bin/ruby -S rspec ./spec/requests/users_spec.rb
  4. /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:503:in ‘load_missing_constant': Expected /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/devise-2.1.2/app/controllers/devise_controller.rb to define DeviseController (LoadError)
  5. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:192:in ‘block in const_missing'
  6. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:190:in ‘each'
  7. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:190:in ‘const_missing'
  8. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/devise-2.1.2/app/controllers/devise/sessions_controller.rb:1:in ‘<top (required)>'
  9. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in ‘require'
  10. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in ‘block in require'
  11. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:236:in ‘load_dependency'
  12. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in ‘require'
  13. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:359:in ‘require_or_load'
  14. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:502:in ‘load_missing_constant'
  15. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:192:in ‘block in const_missing'
  16. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:190:in ‘each'
  17. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:190:in ‘const_missing'
  18. from /Users/carl/rails_projects/my_rails_app_name/app/controllers/application_controller.rb:14:in ‘<class:ApplicationController>'
  19. from /Users/carl/rails_projects/my_rails_app_name/app/controllers/application_controller.rb:1:in ‘<top (required)>'
  20. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in ‘require'
  21. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in ‘block in require'
  22. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:236:in ‘load_dependency'
  23. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in ‘require'
  24. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:359:in ‘require_or_load'
  25. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:502:in ‘load_missing_constant'
  26. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:192:in ‘block in const_missing'
  27. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:190:in ‘each'
  28. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:190:in ‘const_missing'
  29. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.2.3/lib/active_support/inflector/methods.rb:229:in ‘block in constantize'
  30. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.2.3/lib/active_support/inflector/methods.rb:228:in ‘each'
  31. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.2.3/lib/active_support/inflector/methods.rb:228:in ‘constantize'
  32. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.2.3/lib/active_support/core_ext/string/inflections.rb:54:in ‘constantize'
  33. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/devise-2.1.2/app/controllers/devise_controller.rb:2:in ‘<top (required)>'
  34. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in ‘require'
  35. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in ‘block in require'
  36. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:236:in ‘load_dependency'
  37. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in ‘require'
  38. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:359:in ‘require_or_load'
  39. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:502:in ‘load_missing_constant'
  40. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:192:in ‘block in const_missing'
  41. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:190:in ‘each'
  42. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:190:in ‘const_missing'
  43. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/devise-2.1.2/app/controllers/devise/confirmations_controller.rb:1:in ‘<top (required)>'
  44. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in ‘require'
  45. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in ‘block in require'
  46. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:236:in ‘load_dependency'
  47. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in ‘require'
  48. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:359:in ‘require_or_load'
  49. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:313:in ‘depend_on'
  50. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:225:in ‘require_dependency'
  51. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/railties-3.2.3/lib/rails/engine.rb:439:in ‘block (2 levels) in eager_load!'
  52. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/railties-3.2.3/lib/rails/engine.rb:438:in ‘each'
  53. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/railties-3.2.3/lib/rails/engine.rb:438:in ‘block in eager_load!'
  54. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/railties-3.2.3/lib/rails/engine.rb:436:in ‘each'
  55. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/railties-3.2.3/lib/rails/engine.rb:436:in ‘eager_load!'
  56. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/railties-3.2.3/lib/rails/application/railties.rb:8:in ‘each'
  57. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/railties-3.2.3/lib/rails/application/railties.rb:8:in ‘all'
  58. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/railties-3.2.3/lib/rails/engine.rb:434:in ‘eager_load!'
  59. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/railties-3.2.3/lib/rails/application/finisher.rb:53:in ‘block in <module:Finisher>'
  60. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/railties-3.2.3/lib/rails/initializable.rb:30:in ‘instance_exec'
  61. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/railties-3.2.3/lib/rails/initializable.rb:30:in ‘run'
  62. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/railties-3.2.3/lib/rails/initializable.rb:55:in ‘block in run_initializers'
  63. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/railties-3.2.3/lib/rails/initializable.rb:54:in ‘each'
  64. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/railties-3.2.3/lib/rails/initializable.rb:54:in ‘run_initializers'
  65. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/railties-3.2.3/lib/rails/application.rb:136:in ‘initialize!'
  66. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/railties-3.2.3/lib/rails/railtie/configurable.rb:30:in ‘method_missing'
  67. from /Users/carl/rails_projects/my_rails_app_name/config/environment.rb:5:in ‘<top (required)>'
  68. from /Users/carl/rails_projects/my_rails_app_name/spec/spec_helper.rb:3:in ‘require'
  69. from /Users/carl/rails_projects/my_rails_app_name/spec/spec_helper.rb:3:in ‘<top (required)>'
  70. from /Users/carl/rails_projects/my_rails_app_name/spec/requests/users_spec.rb:1:in ‘require'
  71. from /Users/carl/rails_projects/my_rails_app_name/spec/requests/users_spec.rb:1:in ‘<top (required)>'
  72. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in ‘load'
  73. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in ‘block in load_spec_files'
  74. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in ‘map'
  75. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in ‘load_spec_files'
  76. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:22:in ‘run'
  77. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in ‘run'
  78. from /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in ‘block in autorun'
  79. rake aborted!
  80. /Users/carl/.rvm/rubies/ruby-1.9.2-head/bin/ruby -S rspec ./spec/requests/users_spec.rb failed
  81. /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/rspec-core-2.11.1/lib/rspec/core/rake_task.rb:137:in ‘block (2 levels) in initialize'
  82. /Users/carl/.rvm/gems/ruby-1.9.2-head@global/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:60:in ‘verbose'
  83. /Users/carl/.rvm/gems/ruby-1.9.2-head/gems/rspec-core-2.11.1/lib/rspec/core/rake_task.rb:127:in ‘block in initialize'
  84. /Users/carl/.rvm/gems/ruby-1.9.2-head@global/gems/rake-0.9.2.2/lib/rake/task.rb:205:in ‘call'
  85. /Users/carl/.rvm/gems/ruby-1.9.2-head@global/gems/rake-0.9.2.2/lib/rake/task.rb:205:in ‘block in execute'
  86. /Users/carl/.rvm/gems/ruby-1.9.2-head@global/gems/rake-0.9.2.2/lib/rake/task.rb:200:in ‘each'
  87. /Users/carl/.rvm/gems/ruby-1.9.2-head@global/gems/rake-0.9.2.2/lib/rake/task.rb:200:in ‘execute'
  88. /Users/carl/.rvm/gems/ruby-1.9.2-head@global/gems/rake-0.9.2.2/lib/rake/task.rb:158:in ‘block in invoke_with_call_chain'
  89. /Users/carl/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/monitor.rb:201:in ‘mon_synchronize'
  90. /Users/carl/.rvm/gems/ruby-1.9.2-head@global/gems/rake-0.9.2.2/lib/rake/task.rb:151:in ‘invoke_with_call_chain'
  91. /Users/carl/.rvm/gems/ruby-1.9.2-head@global/gems/rake-0.9.2.2/lib/rake/task.rb:144:in ‘invoke'
  92. /Users/carl/.rvm/gems/ruby-1.9.2-head@global/gems/rake-0.9.2.2/lib/rake/application.rb:116:in ‘invoke_task'
  93. /Users/carl/.rvm/gems/ruby-1.9.2-head@global/gems/rake-0.9.2.2/lib/rake/application.rb:94:in ‘block (2 levels) in top_level'
  94. /Users/carl/.rvm/gems/ruby-1.9.2-head@global/gems/rake-0.9.2.2/lib/rake/application.rb:94:in ‘each'
  95. /Users/carl/.rvm/gems/ruby-1.9.2-head@global/gems/rake-0.9.2.2/lib/rake/application.rb:94:in ‘block in top_level'
  96. /Users/carl/.rvm/gems/ruby-1.9.2-head@global/gems/rake-0.9.2.2/lib/rake/application.rb:133:in ‘standard_exception_handling'
  97. /Users/carl/.rvm/gems/ruby-1.9.2-head@global/gems/rake-0.9.2.2/lib/rake/application.rb:88:in ‘top_level'
  98. /Users/carl/.rvm/gems/ruby-1.9.2-head@global/gems/rake-0.9.2.2/lib/rake/application.rb:66:in ‘block in run'
  99. /Users/carl/.rvm/gems/ruby-1.9.2-head@global/gems/rake-0.9.2.2/lib/rake/application.rb:133:in ‘standard_exception_handling'
  100. /Users/carl/.rvm/gems/ruby-1.9.2-head@global/gems/rake-0.9.2.2/lib/rake/application.rb:63:in ‘run'
  101. /Users/carl/.rvm/gems/ruby-1.9.2-head@global/gems/rake-0.9.2.2/bin/rake:33:in ‘<top (required)>'
  102. /Users/carl/.rvm/gems/ruby-1.9.2-head/bin/rake:19:in ‘load'
  103. /Users/carl/.rvm/gems/ruby-1.9.2-head/bin/rake:19:in ‘<main>'
  104. `
  105.  
  106. > `require 'spec_helper'
  107. >
  108. > describe "Users" do
  109. > describe "GET /" do
  110. > it "goes to homepage" do
  111. > visit '/'
  112. > response.status.should be(200)
  113. > end
  114. > end
  115. > end`
  116.  
  117. # This file is copied to spec/ when you run 'rails generate rspec:install'
  118. ENV["RAILS_ENV"] ||= 'test'
  119. require File.expand_path("../../config/environment", __FILE__)
  120. require 'rspec/rails'
  121. require 'rspec/autorun'
  122. require 'capybara/rspec'
  123. #require 'capybara/rails'
  124.  
  125.  
  126. # Note: To create integration test: $rails g integration_test blah --integration-tool=rspec
  127.  
  128.  
  129. # Requires supporting ruby files with custom matchers and macros, etc,
  130. # in spec/support/ and its subdirectories.
  131. Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
  132.  
  133. RSpec.configure do |config|
  134.  
  135. # Include devise in Rspec tests
  136. config.include Devise::TestHelpers, :type => :controller
  137.  
  138. # ## Mock Framework
  139. #
  140. # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
  141. #
  142. # config.mock_with :mocha
  143. # config.mock_with :flexmock
  144. # config.mock_with :rr
  145.  
  146. # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
  147. config.fixture_path = "#{::Rails.root}/spec/fixtures"
  148.  
  149. # If you're not using ActiveRecord, or you'd prefer not to run each of your
  150. # examples within a transaction, remove the following line or assign false
  151. # instead of true.
  152. config.use_transactional_fixtures = true
  153.  
  154. # If true, the base class of anonymous controllers will be inferred
  155. # automatically. This will be the default behavior in future versions of
  156. # rspec-rails.
  157. config.infer_base_class_for_anonymous_controllers = false
  158.  
  159. # Run specs in random order to surface order dependencies. If you find an
  160. # order dependency and want to debug it, you can fix the order by providing
  161. # the seed, which is printed after each run.
  162. # --seed 1234
  163. config.order = "random"
  164. end
  165.  
  166. # ===============================================
  167. # == Commented this out to make rspec tests work
  168. # ===============================================
  169. # Override Devise create session controller
  170. # Devise::SessionsController.class_eval do
  171. # def create
  172. # resource = warden.authenticate!(auth_options)
  173. # set_flash_message(:notice, :signed_in) if is_navigational_format?
  174. # sign_in(resource_name, resource)
  175. # @sign_in_path = after_sign_in_path_for(resource)
  176. # end
  177. # end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement