Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8038789
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T03:21:11+00:00 2026-06-05T03:21:11+00:00

$ rake spec 1) GroupsController GET show show one group’s name & description Failure/Error:

  • 0
$ rake spec

  1) GroupsController GET show show one group's name & description
     Failure/Error: get :show
     ActionController::RoutingError:
       No route matches {:controller=>"groups", :action=>"show"}
     # ./spec/controllers/groups_controller_spec.rb:16:in `block (3 levels) in <top (required)>'

Finished in 0.26379 seconds
2 examples, 1 failure


cat controllers/groups_controller_spec.rb 
require 'spec_helper'

describe GroupsController do

  describe "GET index" do
    it "assigns all groups to @groups" do
      group = FactoryGirl.create(:group)
      get :index
      assigns(:groups).should eq([group])
    end
  end

  describe "GET show" do
    it "show one group's name & description" do
      group = FactoryGirl.create(:group)
      get :show
      assigns(:group).should eq([group])
    end
  end

end

$ rake routes
(in /home/durrantm/Dropnot/webs/rails_v3/linker)
      ladmin_login        /ladmin/login(.:format)       {:controller=>"ladmin", :action=>"login"}
     ladmin_logout        /ladmin/logout(.:format)      {:controller=>"ladmin", :action=>"logout"}
             users GET    /users(.:format)              {:action=>"index", :controller=>"users"}
                   POST   /users(.:format)              {:action=>"create", :controller=>"users"}
          new_user GET    /users/new(.:format)          {:action=>"new", :controller=>"users"}
         edit_user GET    /users/:id/edit(.:format)     {:action=>"edit", :controller=>"users"}
              user GET    /users/:id(.:format)          {:action=>"show", :controller=>"users"}
                   PUT    /users/:id(.:format)          {:action=>"update", :controller=>"users"}
                   DELETE /users/:id(.:format)          {:action=>"destroy", :controller=>"users"}
order_links_groups POST   /groups/order_links(.:format) {:action=>"order_links", :controller=>"groups"}
            groups GET    /groups(.:format)             {:action=>"index", :controller=>"groups"}
                   POST   /groups(.:format)             {:action=>"create", :controller=>"groups"}
         new_group GET    /groups/new(.:format)         {:action=>"new", :controller=>"groups"}
        edit_group GET    /groups/:id/edit(.:format)    {:action=>"edit", :controller=>"groups"}
             group GET    /groups/:id(.:format)         {:action=>"show", :controller=>"groups"}
                   PUT    /groups/:id(.:format)         {:action=>"update", :controller=>"groups"}
                   DELETE /groups/:id(.:format)         {:action=>"destroy", :controller=>"groups"}
            search        /search(.:format)             {:action=>"index", :controller=>"links"}
   advanced_search        /advanced_search(.:format)    {:action=>"advanced_search", :controller=>"links"}
      groups_links GET    /links/groups(.:format)       {:action=>"groups", :controller=>"links"}
             links GET    /links(.:format)              {:action=>"index", :controller=>"links"}
                   POST   /links(.:format)              {:action=>"create", :controller=>"links"}
          new_link GET    /links/new(.:format)          {:action=>"new", :controller=>"links"}
         edit_link GET    /links/:id/edit(.:format)     {:action=>"edit", :controller=>"links"}
              link GET    /links/:id(.:format)          {:action=>"show", :controller=>"links"}
                   PUT    /links/:id(.:format)          {:action=>"update", :controller=>"links"}
                   DELETE /links/:id(.:format)          {:action=>"destroy", :controller=>"links"}
              root        /(.:format)                   {:controller=>"links", :action=>"index"}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T03:21:12+00:00Added an answer on June 5, 2026 at 3:21 am

    You need to pass an id.


    get :show, id: group.id

    and


    assigns(:group).should eq(group)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I run rake db:seed ,something are broken! I get the following error: ray@ray-virtual-machine:~/ticketee$
Whenever I run rake spec, there's a 70-80% chance that I get a SEGMENTATION_FAULT
I have failing tests that show up when I do a 'rake spec' or
I try to run spec tests and I get bundle exec rake spec Could
rake assets:precompile creates new file like application-be2b8c92856ffacee861d9e9c2935e3e, but there's old one named application-c730047bc2a5cf3a706aa3a9f998ab77.css. It
I've got some rake migrations set up. One of the tables I'm modifying has
I've got a rake task task :post_hit, [:host, :title, :description, :model, :num_assignments, :reward, :lifetime,
I get the error in subj when I'm trying to run specs or generators
Given a Rakefile that executes some RSpec tests by way of a Spec::Rake::SpecTask ,
I only know the rake spec command which runs all the tests.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.