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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T00:25:54+00:00 2026-06-05T00:25:54+00:00

(Using Hartl’s Tutorial) I went through chapter 3 without any problems using rspec to

  • 0

(Using Hartl’s Tutorial)
I went through chapter 3 without any problems using rspec to test but after I finished up the section, merged branches, etc – I can no longer run the rspec tests. I’m on chapter 4 trying to do the first set of testing but I get the follow error:

C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-2.10.1/lib/rspec
/core/configuration.rb:746:in load': C:/Sites/rails_projects/sample_app/spec/re
quests/static_pages_spec.rb:61: syntax error, unexpected $end, expecting keyword
_end (SyntaxError)
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-2.1
0.1/lib/rspec/core/configuration.rb:746:in
block in load_spec_files’
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-2.1
0.1/lib/rspec/core/configuration.rb:746:in map'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-2.1
0.1/lib/rspec/core/configuration.rb:746:in
load_spec_files’
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-2.1
0.1/lib/rspec/core/command_line.rb:22:in run'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-2.1
0.1/lib/rspec/core/runner.rb:69:in
run’
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-2.1
0.1/lib/rspec/core/runner.rb:10:in `block in autorun’

What could be the problem? I tried running rails generate rspec:install and tried again but with no luck.

  • 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-05T00:25:56+00:00Added an answer on June 5, 2026 at 12:25 am

    first there is a syntax error in the static_pages_spec.rb file…that you need to fix…you should check Hartl’s code for the proper syntax…

    second, ensure that you are running rspec from the app’s root directory…which in probably called sample_app in Hartl’s tutorial…

    if none of these works, then you should give rpsec and absolute path starting from C:/…

    let me know if it works..

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

Sidebar

Related Questions

I am trying to test a Rails app using Michael Hartl's tutorial, but I
total noob to rails and am using the Hartl tutorial. Got to chapter 4
I'm working through Michael Hartl's Rails Tutorial. I've come to Chapter 9, Exercise 1
I am using Rails tutorial with example book by Michael Hartl as a reference
I just started reading Michael Hartl's Ruby on Rails 3 Tutorial. He recommends using
I making my Admin User using Michael Hartl's Rails 3 Tutorial .I am making
I'm working through Michael Hartl's Ruby on Rails tutorial on http://ruby.railstutorial.org . I'm having
I'm trying to walk through Hartl's Ruby on Rails tutorial whilst upgrading his examples
I am completely new to ror and am following Michael Hartl's tutorial but I
I am practicing this RoR tutorial project of Michael Hartl: http://ruby.railstutorial.org/ruby-on-rails-tutorial-book I am using

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.