Skip to content

Instantly share code, notes, and snippets.

@rsanheim
Created March 4, 2010 03:29
Show Gist options
  • Save rsanheim/321367 to your computer and use it in GitHub Desktop.
Save rsanheim/321367 to your computer and use it in GitHub Desktop.
[rcr-web 2] rake spec
(in /Volumes/codes/rcr-web 2)
NOTICE: CREATE TABLE will create implicit sequence "projects_id_seq" for serial column "projects.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "projects_pkey" for table "projects"
current class in question
(side question - shouldnt this be some Rspec class, and not my application class?):
ProjectsController
object ids:
2173153800
2173197580
class names:
"ProjectsController"
"ProjectsController"
ancestor chains:
[ProjectsController]
[ProjectsController, ApplicationController, ActionController::Base, ActiveRecord::Railties::ControllerRuntime, ActionController::Rescue, ActiveSupport::Rescuable, ActionController::Base::ImplicitRender, ActionController::Instrumentation, ActionController::HttpAuthentication::Digest::ControllerMethods, ActionController::HttpAuthentication::Basic::ControllerMethods, ActionController::Streaming, ActionController::RequestForgeryProtection, ActionController::Verification, ActionController::Flash, ActionController::Cookies, ActionController::Compatibility, AbstractController::Compatibility, ActionController::MimeResponds, ActionController::Caching::Sweeping, ActionController::Caching::Pages, ActionController::Caching::Actions, ActionController::Caching::Fragments, ActionController::Caching, ActionController::SessionManagement, ActionController::Configuration, ActionController::ConditionalGet, ActionController::Head, ActionController::RackDelegation, ActionController::Renderers::All, ActionController::Renderers, AbstractController::LocalizedCache, ActionController::Rendering, ActionController::Redirecting, AbstractController::Logger, #<Module:0x1035202c0>, ActionDispatch::Routing::Helpers, ActionController::PolymorphicRoutes, ActionController::UrlFor, ActionController::HideActions, ActionController::Helpers, AbstractController::Helpers, AbstractController::Translation, AbstractController::Layouts, AbstractController::Rendering, AbstractController::Callbacks, ActiveSupport::Callbacks, ActionController::Metal, AbstractController::Base, Object, Mocha::ObjectMethods, Rspec::Core::SharedExampleGroup, Rspec::Core::KernelExtensions, Base64::Deprecated, Base64, JSON::Ext::Generator::GeneratorMethods::Object, ActiveSupport::Dependencies::Loadable, Arel::Sql::ObjectExtensions, Arel::ObjectExtensions, Kernel]
so now this fails, which means the get fails:
F*
1) ProjectsController is confusing
Failure/Error: p self.class.action(:new)
undefined method `action' for ProjectsController:Class
# ./spec/controllers/projects_controller_spec.rb:27
# ./spec/controllers/projects_controller_spec.rb:3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment