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 7434507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:50:59+00:00 2026-05-29T09:50:59+00:00

Ok so I am a ruby on rails developer and I am about to

  • 0

Ok so I am a ruby on rails developer and I am about to start trying to use the TDD (test driven development) approach and I am not sure what I am doing wrong. I have an existing app that has some rpec tests already and I am trying to figure how to run them but when i do

rake spec
(in /Users/tamer/Sites/preview)
/Users/tamer/.rvm/gems/ruby-1.9.2-p290@my_app/gems/aws-s3-0.6.2/lib/aws/s3/extensions.rb:206:in `const_missing_from_s3_library': uninitialized constant PreviewsController (NameError)
    from /Users/tamer/.rvm/gems/ruby-1.9.2-p290@my_app/gems/rspec-core-2.5.1/lib/rspec/core/backward_compatibility.rb:20:in `const_missing'
    from /Users/tamer/Sites/preview/spec/controllers/previews_controller_spec.rb:3:in `<top (required)>'
    from /Users/tamer/.rvm/gems/ruby-1.9.2-p290@my_app/gems/rspec-core-2.5.1/lib/rspec/core/configuration.rb:386:in `block in load_spec_files'
    from /Users/tamer/.rvm/gems/ruby-1.9.2-p290@my_app/gems/rspec-core-2.5.1/lib/rspec/core/configuration.rb:386:in `map'
    from /Users/tamer/.rvm/gems/ruby-1.9.2-p290@my_app/gems/rspec-core-2.5.1/lib/rspec/core/configuration.rb:386:in `load_spec_files'
    from /Users/tamer/.rvm/gems/ruby-1.9.2-p290@my_app/gems/rspec-core-2.5.1/lib/rspec/core/command_line.rb:18:in `run'
    from /Users/tamer/.rvm/gems/ruby-1.9.2-p290@my_app/gems/rspec-core-2.5.1/lib/rspec/core/runner.rb:55:in `run_in_process'
    from /Users/tamer/.rvm/gems/ruby-1.9.2-p290@my_app/gems/rspec-core-2.5.1/lib/rspec/core/runner.rb:46:in `run'
    from /Users/tamer/.rvm/gems/ruby-1.9.2-p290@my_app/gems/rspec-core-2.5.1/lib/rspec/core/runner.rb:10:in `block in autorun'
rake aborted!

(See full trace by running task with --trace)

Is there something that i am missing and what I need to do to get the previous tests to run

  • 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-05-29T09:50:59+00:00Added an answer on May 29, 2026 at 9:50 am

    The error is pretty self-explanatory.

    uninitialized constant PreviewsController (NameError)
    

    Chances are the PreviewsController class referenced by ./spec/controllers/previews_controller_spec.rb no longer exists in /app/controllers.

    Either update the spec or remove it if the corresponding controller has been removed.

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

Sidebar

Related Questions

I'm just start to develop on Ruby on Rails and i've question about complex
I'm a 80% ruby on rails developer, but still need to do some Access
I'm just starting out with Ruby/Rails and am wondering what Rails developers use to
This is not a ruby/rails project deploy. I have the following situation and I
What is the best way to generate a random DateTime in Ruby/Rails? Trying to
i've developed small web app for personal use with Ruby on Rails. Now when
I'm trying to write an import rakefile for Redmine. It uses ruby on rails.
Hi I am a ruby on rails developer can any body help me in
I'm currently trying to deploy an Ruby on Rails 3.0.9 app on a production
As an experienced .NET developer, I am interested in learning the Ruby on Rails

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.