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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:45:47+00:00 2026-05-16T23:45:47+00:00

When I try and define (but not implement an it test) (pending method) using

  • 0

When I try and define (but not implement an it test) (pending method) using RSpec

describe "test" do
  it "should not fail, but does"
end

I get this error when I try and run

ArgumentError in 'should not fail, but does'
wrong number of arguments (1 for 0)

Does anyone know why this is happening? Am I doing something wrong? (I am using Ruby 1.9.2 and RSpec 1.3.0). Can somebody please help me fix this problem?

  • 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-16T23:45:48+00:00Added an answer on May 16, 2026 at 11:45 pm

    Wow, weird. I was able to duplicate your problem with Ruby 1.9.2. No idea why it happens, but this lets you have a properly pending spec:

    class Foo
    end
    
    describe Foo do
      # This fails in Ruby 1.9.2 but works in 1.8.7
      it "is pending"
    
      # This works in both
      it "is pending" do
        pending
      end
    end
    

    rspec 2.0.0 seems to fix the issue with 1.9.2, however.

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

Sidebar

Related Questions

I know how to do a global variable, but whenever I try to define
I want to try to implement the Tetris Game using TDD. From what I've
I'm trying to implement a tinyMCE editor into an ExtJs environment. But it's not
I'm not sure if I'm asking the question the way it should be but
I am new to AppKit but not to UIKit. I try to use an
I try to implement User define Delegate.For that i did this code **- DelegateAppDelegate.h**
So I have this function: (define (try try-block catch-block finally-block) ; Implements try/catch/finally like
I have a header menu and try to define different CSS classes for each
I get this error FB is not defined when i try to run this
I'll try to be brief here. I'm trying to implement A Star on Python,

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.