Skip to content

Instantly share code, notes, and snippets.

@leemcalilly
Created July 5, 2011 17:52
Show Gist options
  • Save leemcalilly/1065401 to your computer and use it in GitHub Desktop.
Save leemcalilly/1065401 to your computer and use it in GitHub Desktop.
July 5 Failures
1) KnowledgesController GET :show rendering should render a different template for each type of knowledge
Failure/Error: get :show, :id => knowledge.id
undefined method `model_name' for NilClass:Class
undefined method `model_name' for NilClass:Class
# ./app/views/knowledges/_complementary_content.html.erb:4:in `_app_views_knowledges__complementary_content_html_erb__1143638891745883122_2204931120'
# ./app/views/application/_complementary.html.erb:2:in `_app_views_application__complementary_html_erb__3571900282483915784_2204947540'
# ./app/views/layouts/application.html.erb:22:in `_app_views_layouts_application_html_erb__3866301438023989637_2166619180'
# ./spec/controllers/knowledges_controller_spec.rb:90:in `block (5 levels) in <top (required)>'
# ./spec/controllers/knowledges_controller_spec.rb:88:in `each'
# ./spec/controllers/knowledges_controller_spec.rb:88:in `block (4 levels) in <top (required)>'
2) Events GET /events/the-event should properly route to /events/the-event
Failure/Error: visit event_path(event.reload.friendly_id)
undefined method `model_name' for NilClass:Class
undefined method `model_name' for NilClass:Class
# ./app/views/events/_complementary_content.html.erb:4:in `_app_views_events__complementary_content_html_erb___292906282274744472_2237935680'
# ./app/views/application/_complementary.html.erb:2:in `_app_views_application__complementary_html_erb__3571900282483915784_2204947540'
# ./app/views/layouts/application.html.erb:22:in `_app_views_layouts_application_html_erb__3866301438023989637_2166619180'
# ./spec/requests/events_spec.rb:55:in `block (3 levels) in <top (required)>'
3) Events GET /events/the-event should show the event's information
Failure/Error: visit event_path(event)
undefined method `model_name' for NilClass:Class
undefined method `model_name' for NilClass:Class
# ./app/views/events/_complementary_content.html.erb:4:in `_app_views_events__complementary_content_html_erb___292906282274744472_2237935680'
# ./app/views/application/_complementary.html.erb:2:in `_app_views_application__complementary_html_erb__3571900282483915784_2204947540'
# ./app/views/layouts/application.html.erb:22:in `_app_views_layouts_application_html_erb__3866301438023989637_2166619180'
# ./spec/requests/events_spec.rb:73:in `block (3 levels) in <top (required)>'
4) Knowledges GET /knowledge/yours should properly route to /knowledge/yours
Failure/Error: visit yours_knowledges_path
undefined method `model_name' for NilClass:Class
undefined method `model_name' for NilClass:Class
# ./app/views/knowledges/_complementary_content.html.erb:4:in `_app_views_knowledges__complementary_content_html_erb__1143638891745883122_2204931120'
# ./app/views/application/_complementary.html.erb:2:in `_app_views_application__complementary_html_erb__3571900282483915784_2204947540'
# ./app/views/layouts/application.html.erb:22:in `_app_views_layouts_application_html_erb__3866301438023989637_2166619180'
# ./spec/requests/knowledges_spec.rb:17:in `block (3 levels) in <top (required)>'
5) Knowledges GET /knowledge/yours should only show display the knowledges the user has created
Failure/Error: visit yours_knowledges_path
undefined method `model_name' for NilClass:Class
undefined method `model_name' for NilClass:Class
# ./app/views/knowledges/_complementary_content.html.erb:4:in `_app_views_knowledges__complementary_content_html_erb__1143638891745883122_2204931120'
# ./app/views/application/_complementary.html.erb:2:in `_app_views_application__complementary_html_erb__3571900282483915784_2204947540'
# ./app/views/layouts/application.html.erb:22:in `_app_views_layouts_application_html_erb__3866301438023989637_2166619180'
# ./spec/requests/knowledges_spec.rb:24:in `block (3 levels) in <top (required)>'
6) Knowledges GET /knowledge/new should properly route to /knowledge/new
Failure/Error: visit new_knowledge_path
undefined method `model_name' for NilClass:Class
undefined method `model_name' for NilClass:Class
# ./app/views/knowledges/_complementary_content.html.erb:4:in `_app_views_knowledges__complementary_content_html_erb__1143638891745883122_2204931120'
# ./app/views/application/_complementary.html.erb:2:in `_app_views_application__complementary_html_erb__3571900282483915784_2204947540'
# ./app/views/layouts/application.html.erb:22:in `_app_views_layouts_application_html_erb__3866301438023989637_2166619180'
# ./spec/requests/knowledges_spec.rb:34:in `block (3 levels) in <top (required)>'
7) Knowledges GET /knowledge/new should show the the new form
Failure/Error: within("#new_knowledge") do
Unable to find '#new_knowledge'
# ./spec/requests/knowledges_spec.rb:39:in `block (3 levels) in <top (required)>'
8) Knowledges GET /knowledge/:id text-type should render the template without escaping the HTML content
Failure/Error: visit knowledge_path(@knowledge)
undefined method `model_name' for NilClass:Class
undefined method `model_name' for NilClass:Class
# ./app/views/knowledges/_complementary_content.html.erb:4:in `_app_views_knowledges__complementary_content_html_erb__1143638891745883122_2204931120'
# ./app/views/application/_complementary.html.erb:2:in `_app_views_application__complementary_html_erb__3571900282483915784_2204947540'
# ./app/views/layouts/application.html.erb:22:in `_app_views_layouts_application_html_erb__3866301438023989637_2166619180'
# ./spec/requests/knowledges_spec.rb:55:in `block (4 levels) in <top (required)>'
9) Knowledges GET /knowledge/:id/edit should properly route to /knowledge/:id/edit
Failure/Error: visit edit_knowledge_path(@knowledge)
undefined method `model_name' for NilClass:Class
undefined method `model_name' for NilClass:Class
# ./app/views/knowledges/_complementary_content.html.erb:4:in `_app_views_knowledges__complementary_content_html_erb__1143638891745883122_2204931120'
# ./app/views/application/_complementary.html.erb:2:in `_app_views_application__complementary_html_erb__3571900282483915784_2204947540'
# ./app/views/layouts/application.html.erb:22:in `_app_views_layouts_application_html_erb__3866301438023989637_2166619180'
# ./spec/requests/knowledges_spec.rb:69:in `block (3 levels) in <top (required)>'
10) Knowledges GET /knowledge/:id/edit should show the the edit form
Failure/Error: within(".edit_knowledge") do
Unable to find '.edit_knowledge'
# ./spec/requests/knowledges_spec.rb:74:in `block (3 levels) in <top (required)>'
11) Knowledges POST /knowledge should create a new knowledge
Failure/Error: visit new_knowledge_path
undefined method `model_name' for NilClass:Class
undefined method `model_name' for NilClass:Class
# ./app/views/knowledges/_complementary_content.html.erb:4:in `_app_views_knowledges__complementary_content_html_erb__1143638891745883122_2204931120'
# ./app/views/application/_complementary.html.erb:2:in `_app_views_application__complementary_html_erb__3571900282483915784_2204947540'
# ./app/views/layouts/application.html.erb:22:in `_app_views_layouts_application_html_erb__3866301438023989637_2166619180'
# ./spec/requests/knowledges_spec.rb:86:in `block (3 levels) in <top (required)>'
12) Knowledges POST /knowledge should show errors if the request is invalid
Failure/Error: visit new_knowledge_path
undefined method `model_name' for NilClass:Class
undefined method `model_name' for NilClass:Class
# ./app/views/knowledges/_complementary_content.html.erb:4:in `_app_views_knowledges__complementary_content_html_erb__1143638891745883122_2204931120'
# ./app/views/application/_complementary.html.erb:2:in `_app_views_application__complementary_html_erb__3571900282483915784_2204947540'
# ./app/views/layouts/application.html.erb:22:in `_app_views_layouts_application_html_erb__3866301438023989637_2166619180'
# ./spec/requests/knowledges_spec.rb:86:in `block (3 levels) in <top (required)>'
13) Questions GET /knowledge/new should properly route to /questions/new
Failure/Error: visit new_question_path
undefined method `model_name' for NilClass:Class
undefined method `model_name' for NilClass:Class
# ./app/views/questions/_complementary_content.html.erb:4:in `_app_views_questions__complementary_content_html_erb___2195234583375392146_2237275860'
# ./app/views/application/_complementary.html.erb:2:in `_app_views_application__complementary_html_erb__3571900282483915784_2204947540'
# ./app/views/layouts/application.html.erb:22:in `_app_views_layouts_application_html_erb__3866301438023989637_2166619180'
# ./spec/requests/questions_spec.rb:17:in `block (3 levels) in <top (required)>'
14) Questions GET /knowledge/new should show the the new form
Failure/Error: within("#new_question") do
Unable to find '#new_question'
# ./spec/requests/questions_spec.rb:22:in `block (3 levels) in <top (required)>'
15) Questions GET /questions/:id should properly route to /questions/:id
Failure/Error: visit question_path(@question)
undefined method `model_name' for NilClass:Class
undefined method `model_name' for NilClass:Class
# ./app/views/questions/_complementary_content.html.erb:4:in `_app_views_questions__complementary_content_html_erb___2195234583375392146_2237275860'
# ./app/views/application/_complementary.html.erb:2:in `_app_views_application__complementary_html_erb__3571900282483915784_2204947540'
# ./app/views/layouts/application.html.erb:22:in `_app_views_layouts_application_html_erb__3866301438023989637_2166619180'
# ./spec/requests/questions_spec.rb:35:in `block (3 levels) in <top (required)>'
16) Questions GET /questions/:id should have the question title
Failure/Error: visit question_path(@question)
undefined method `model_name' for NilClass:Class
undefined method `model_name' for NilClass:Class
# ./app/views/questions/_complementary_content.html.erb:4:in `_app_views_questions__complementary_content_html_erb___2195234583375392146_2237275860'
# ./app/views/application/_complementary.html.erb:2:in `_app_views_application__complementary_html_erb__3571900282483915784_2204947540'
# ./app/views/layouts/application.html.erb:22:in `_app_views_layouts_application_html_erb__3866301438023989637_2166619180'
# ./spec/requests/questions_spec.rb:40:in `block (3 levels) in <top (required)>'
17) Questions GET /questions/:id/edit should properly route to /questions/:id/edit
Failure/Error: visit edit_question_path(@question)
undefined method `model_name' for NilClass:Class
undefined method `model_name' for NilClass:Class
# ./app/views/questions/_complementary_content.html.erb:4:in `_app_views_questions__complementary_content_html_erb___2195234583375392146_2237275860'
# ./app/views/application/_complementary.html.erb:2:in `_app_views_application__complementary_html_erb__3571900282483915784_2204947540'
# ./app/views/layouts/application.html.erb:22:in `_app_views_layouts_application_html_erb__3866301438023989637_2166619180'
# ./spec/requests/questions_spec.rb:53:in `block (3 levels) in <top (required)>'
18) Questions GET /questions/:id/edit should show the the edit form
Failure/Error: within(".edit_question") do
Unable to find '.edit_question'
# ./spec/requests/questions_spec.rb:58:in `block (3 levels) in <top (required)>'
19) Questions POST /questions should create a new question
Failure/Error: visit new_question_path
undefined method `model_name' for NilClass:Class
undefined method `model_name' for NilClass:Class
# ./app/views/questions/_complementary_content.html.erb:4:in `_app_views_questions__complementary_content_html_erb___2195234583375392146_2237275860'
# ./app/views/application/_complementary.html.erb:2:in `_app_views_application__complementary_html_erb__3571900282483915784_2204947540'
# ./app/views/layouts/application.html.erb:22:in `_app_views_layouts_application_html_erb__3866301438023989637_2166619180'
# ./spec/requests/questions_spec.rb:68:in `block (3 levels) in <top (required)>'
20) Questions POST /questions should show errors if the request is invalid
Failure/Error: visit new_question_path
undefined method `model_name' for NilClass:Class
undefined method `model_name' for NilClass:Class
# ./app/views/questions/_complementary_content.html.erb:4:in `_app_views_questions__complementary_content_html_erb___2195234583375392146_2237275860'
# ./app/views/application/_complementary.html.erb:2:in `_app_views_application__complementary_html_erb__3571900282483915784_2204947540'
# ./app/views/layouts/application.html.erb:22:in `_app_views_layouts_application_html_erb__3866301438023989637_2166619180'
# ./spec/requests/questions_spec.rb:68:in `block (3 levels) in <top (required)>'
496/496: 100% |==========================================| Time: 00:01:57
Pending:
Blog::Post slug should have an author name
# author name
# ./spec/models/blog/post_spec.rb:68
PartnerPage class methods self.search(opts) should find partner pages by either occurrences on the title or name
# special search for partner_pages#index
# ./spec/models/partner_page_spec.rb:178
Events GET /events should show the events a user have attended
# implement events you've attended
# ./spec/requests/events_spec.rb:47
Welcomes GET /welcome should dinamically show your membership information
# should be implemented when we get the memberships working
# ./spec/requests/welcome_spec.rb:30
Finished in 117.62 seconds
496 examples, 20 failures, 4 pending
Failed examples:
rspec ./spec/controllers/knowledges_controller_spec.rb:86 # KnowledgesController GET :show rendering should render a different template for each type of knowledge
rspec ./spec/requests/events_spec.rb:53 # Events GET /events/the-event should properly route to /events/the-event
rspec ./spec/requests/events_spec.rb:59 # Events GET /events/the-event should show the event's information
rspec ./spec/requests/knowledges_spec.rb:16 # Knowledges GET /knowledge/yours should properly route to /knowledge/yours
rspec ./spec/requests/knowledges_spec.rb:21 # Knowledges GET /knowledge/yours should only show display the knowledges the user has created
rspec ./spec/requests/knowledges_spec.rb:33 # Knowledges GET /knowledge/new should properly route to /knowledge/new
rspec ./spec/requests/knowledges_spec.rb:38 # Knowledges GET /knowledge/new should show the the new form
rspec ./spec/requests/knowledges_spec.rb:54 # Knowledges GET /knowledge/:id text-type should render the template without escaping the HTML content
rspec ./spec/requests/knowledges_spec.rb:68 # Knowledges GET /knowledge/:id/edit should properly route to /knowledge/:id/edit
rspec ./spec/requests/knowledges_spec.rb:73 # Knowledges GET /knowledge/:id/edit should show the the edit form
rspec ./spec/requests/knowledges_spec.rb:89 # Knowledges POST /knowledge should create a new knowledge
rspec ./spec/requests/knowledges_spec.rb:97 # Knowledges POST /knowledge should show errors if the request is invalid
rspec ./spec/requests/questions_spec.rb:16 # Questions GET /knowledge/new should properly route to /questions/new
rspec ./spec/requests/questions_spec.rb:21 # Questions GET /knowledge/new should show the the new form
rspec ./spec/requests/questions_spec.rb:34 # Questions GET /questions/:id should properly route to /questions/:id
rspec ./spec/requests/questions_spec.rb:39 # Questions GET /questions/:id should have the question title
rspec ./spec/requests/questions_spec.rb:52 # Questions GET /questions/:id/edit should properly route to /questions/:id/edit
rspec ./spec/requests/questions_spec.rb:57 # Questions GET /questions/:id/edit should show the the edit form
rspec ./spec/requests/questions_spec.rb:71 # Questions POST /questions should create a new question
rspec ./spec/requests/questions_spec.rb:79 # Questions POST /questions should show errors if the request is invalid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment