class Object

Constants

APP_PATH

This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.

Public Instance Methods

valid_attributes() click to toggle source

This should return the minimal set of attributes required to create a valid Comment. As you add validations to Comment, be sure to update the return value of this method accordingly.

# File spec/controllers/comments_controller_spec.rb, line 26
def valid_attributes
  {}
end
valid_session() click to toggle source

This should return the minimal set of values that should be in the session in order to pass any filters (e.g. authentication) defined in CommentsController. Be sure to keep this updated too.

# File spec/controllers/comments_controller_spec.rb, line 33
def valid_session
  {}
end