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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T07:19:42+00:00 2026-06-11T07:19:42+00:00

I should say first, that I’m not very well-versed in testing my code, and

  • 0

I should say first, that I’m not very well-versed in testing my code, and I didn’t do it at all until recently.

So I have this rails app. It’s basically an API endpoint. It takes requests and spits JSON. There’s good (I hope) test coverage that should test most of the functionality.

Now we’re deploying a staging env and want to let load testing guys (independent department) to “play” with it. I want to be super sure that we deployed it correctly.

Can I run RSpec’s request specs against this staging deployment? Do people do this kind of testing at all? What are best practices? What should I read?

  • 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-11T07:19:44+00:00Added an answer on June 11, 2026 at 7:19 am

    Yes you can test deployed site using Rspec and Capybara. You need change configuration like this:

    1. Change driver to :webkit, :selenium or :poltergeist, because the default driver (:rack_test) does not support running against a remote server.

      Capybara.javascript_driver = :selenium
      
    2. Set app_host.

      Capybara.app_host = 'http://example.com'
      
    3. Turn off local server.

      Capybara.run_server = false
      

    After that you can create test for deployed server using Capybara DSL.

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

Sidebar

Related Questions

First of all I should probably say that the term 'constant object' is probably
First of all, I should say that I'm starting to learn git so that
First off I should say that I don't have any experience in working with
First, i should say that I am relatively new to programming so please be
First, I should say that I am a beginner in terms of XSLT. Although
First, I should say I'm using ARC, so retain is not an option. The
Question should say it all. Let's say there's a local file mydefaultvalues.txt, separated from
I wan't to divide my CI into multiple applications. I should say that it
Im learning Mockito and in chapter 16 they say you should not use partial
I have two testing questions. Both are probably easily answered. The first is that

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.