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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T23:46:10+00:00 2026-06-03T23:46:10+00:00

I am new to Ruby and have been asked to use it in our

  • 0

I am new to Ruby and have been asked to use it in our new project. We have also been asked to use Padrino (Sinatra) as backend/framework. For testing we have been asked to use Rspec. I have been hunting for tutorials for long that would guide in using Rspec for Ruby on Padrino. What I get is mostly with reference to RoR. But, I am in need of Ruby on Padrino.

Please guide me for the same with any starters/guides/references/discussions, etc.

Please correct me, if I am wrong anywhere. May be I haven’t searched with the right combination of words/phrases for my issue.

I am using Ruby 1.9.3 and Padrino v.0.10.6.

Note : I have also referred the SO question, but it didn’t help.

  • 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-03T23:46:11+00:00Added an answer on June 3, 2026 at 11:46 pm

    I never used Padrino, but it seems that it isn’t much different from Sinatra.

    I suggest reading Sinatra and RSpec resources.
    You can get started with this:

    • How to use rspec in a Sinatra Application
    • Sinatra, RSpec and DataMapper: Configuring and using a database for tests

    And by reading specs that were written by other people on GitHub. These are some of mine, but they are not the cleanest thing that exists.


    EDIT: a short tutorial

    Getting started with this framework is much quicker and easier than with Sinatra. 🙂

    Install Padrino: gem install padrino

    Create an application: padrino g project myapp -d datamapper -t rspec
    The command speaks for itself. 🙂

    Run the tests: rspec --color
    No tests were found, obviously. Let’s create one in spec/hello/hello_spec.rb:

    require File.dirname(__FILE__) + "/../spec_helper.rb"
    
    describe "get '/'" do
      it "should display hello world" do
        get '/'
        last_response.body.should == "Hello world!"
      end
    end
    

    Run the tests again.
    They failed, because no route get '/' exists. Let’s create it.

    In app/controllers/hello.rb:

    Myapp.controller do
      get '/' do
        "Hello world!"
      end
    end
    

    Run the test: it passes!

    Check Padrino’s documentation for more information and cool features, such as the controllers generator and the admin interface.

    Good luck!

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

Sidebar

Related Questions

I’m relatively new to Ruby, Sinatra, and DataMapper, but have a question about DataMapper
I'm new to Ruby, and have been working my way through Mr Neighborly's Humble
I have been trying to use the ruby-git gem to make commits etc from
I'm very new to Ruby on Rails, and have been getting the following error
I'm very new to ruby & Sinatra and I have a basic question: The
Im new to ruby on rails and i have been following The Rails Space
I am new to Rails & Ruby and have been following the http://ruby.railstutorial.org/ruby-on-rails-tutorial-book and
In a Ruby project that I have been spending some time on lately, I
I am new to Ruby on Rails and have been helped immensely by Michael
I have been working on Ruby on rails project for a while now, when

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.