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

  • Home
  • SEARCH
  • 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 8869451
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:29:06+00:00 2026-06-14T17:29:06+00:00

My Problem / Question I am unable to run the very basic rspec test

  • 0

My Problem / Question

I am unable to run the very basic rspec test in listing 3.9 I feel like I am missing something very basic which is causing the static_pages_spec to return a LoadError. Does anyone have an idea what is going wrong?

The Error

E:\CSProj\RailsTutorial\sample_app>bundle exec rspec spec/request/static_pages_s
pec.rb
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-2.11.1/lib/rspec
/core/configuration.rb:780:in load': cannot load such file -- E:/CSProj/RailsTu
torial/sample_app/spec/request/static_pages_spec.rb (LoadError)
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-2.1
1.1/lib/rspec/core/configuration.rb:780:in
block in load_spec_files’
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-2.1
1.1/lib/rspec/core/configuration.rb:780:in map'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-2.1
1.1/lib/rspec/core/configuration.rb:780:in
load_spec_files’
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-2.1
1.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
1.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
1.1/lib/rspec/core/runner.rb:8:in `block in autorun’

The Code

I am using the following code: https://github.com/adoliver/sample_app/blob/static-pages/spec/requests/static_pages_spec.rb

require 'spec_helper'

describe "Static pages" do

  describe "Home page" do

    it "should have the content 'Sample App'" do
      visit '/static_pages/home'
      page.should have_content('Sample App')
    end
  end
end

Some information about my development environment

Windows 7
Used railsInstaller
Using windows native command line
Previous steps in the tutorial worked.

E:\CSProj\RailsTutorial\sample_app>ruby -v
ruby 1.9.3p125 (2012-02-16) [i386-mingw32]

E:\CSProj\RailsTutorial\sample_app>rails -v
Rails 3.2.9

My bundles:

E:\CSProj\RailsTutorial\sample_app>bundle list
Gems included by the bundle:

  • actionmailer (3.2.9)
  • actionpack (3.2.9)
  • activemodel (3.2.9)
  • activerecord (3.2.9)
  • activeresource (3.2.9)
  • activesupport (3.2.9)
  • arel (3.0.2)
  • builder (3.0.4)
  • bundler (1.0.22)
  • capybara (1.1.2)
  • childprocess (0.3.6)
  • coffee-rails (3.2.2)
  • coffee-script (2.2.0)
  • coffee-script-source (1.4.0)
  • diff-lcs (1.1.3)
  • erubis (2.7.0)
  • execjs (1.4.0)
  • ffi (1.2.0)
  • hike (1.2.1)
  • i18n (0.6.1)
  • journey (1.0.4)
  • jquery-rails (2.0.2)
  • json (1.7.5)
  • libwebsocket (0.1.6.1)
  • mail (2.4.4)
  • mime-types (1.19)
  • multi_json (1.3.7)
  • nokogiri (1.5.5)
  • polyglot (0.3.3)
  • rack (1.4.1)
  • rack-cache (1.2)
  • rack-ssl (1.3.2)
  • rack-test (0.6.2)
  • rails (3.2.9)
  • railties (3.2.9)
  • rake (10.0.2)
  • rdoc (3.12)
  • rspec (2.11.0)
  • rspec-core (2.11.1)
  • rspec-expectations (2.11.3)
  • rspec-mocks (2.11.3)
  • rspec-rails (2.11.0)
  • rubyzip (0.9.9)
  • sass (3.2.3)
  • sass-rails (3.2.5)
  • selenium-webdriver (2.26.0)
  • sprockets (2.2.1)
  • sqlite3 (1.3.5)
  • thor (0.16.0)
  • tilt (1.3.3)
  • treetop (1.4.12)
  • tzinfo (0.3.35)
  • uglifier (1.2.3)
  • websocket (1.0.3)
  • xpath (0.1.4)
  • 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-14T17:29:07+00:00Added an answer on June 14, 2026 at 5:29 pm

    You report:

    load': cannot load such file -- E:/CSProj/RailsTu torial/sample_app/spec/request/static_pages_spec.rb (LoadError)
    

    I don’t know if this is silly, but the specs in my directory tree are in /app/spec/requests, not app/spec/request.

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

Sidebar

Related Questions

Another noob regex problem/question. I'm probably doing something silly so I thought I'd exploit
Environment : GlassFish 3.0.1, NetBeans 6.9, JDK 6u21 Problem : Unable to run app-client
I'm having the problem described in this question: Unable to cast COM object of
I've got a little question, which I am unable to solve; I've got one
I have a design problem: Question class: have a question and answer (String) TextQuestion
Not sure the title fully describes the problem/question I'm trying to ask, sorry. One
I am following Ryan Bates railscasts I18n Internationalization and hitting a problem/question. I am
Problem This question actually came up at work today. We are planning an experiment
This is a challenge question / problem. Hope you find it interesing. Scenario: You
I have the same question problem as described here How to purge a cached

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.