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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T04:13:10+00:00 2026-06-08T04:13:10+00:00

I have this code: context Visiting the users #index page. do before(:each) { visit

  • 0

I have this code:

context "Visiting the users #index page." do
  before(:each) { visit users_path }
  subject { page }
  pending('iii') { should have_no_css('table#users') }      
  pending { should have content('You have reached this page due to a permiss

ions error’) }

It results in a couple of pendings, e.g.

Managing Users Given a practitioner logged in. Visiting the users #index page.
# No reason given
# ./spec/requests/role_users_spec.rb:78
Managing Users Given a practitioner logged in. Visiting the users #index page. 
# No reason given
# ./spec/requests/role_users_spec.rb:79

How can I get those pendings to have text instead of “no reason given”

I’ve tried putting some text after the word pending and before the block but that didn’t help – it appeared at the end of the line – but I still have all the “No reason given”s.

  • 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-08T04:13:11+00:00Added an answer on June 8, 2026 at 4:13 am

    pending itself is a method, and the normal use case is something like this:

      it "should say yo" do
        pending "that's right, yo"
        subject.yo!.should eq("yo!")
      end 
    

    That will output

    Pending:
      Yo should say yo
        # that's right, yo
        # ./yo.rb:8
    

    So, when you want to use the short form, like

    its(:yo!) {should eq("yo!") }
    

    Then to mark as pending you have a couple of options:

    xits(:you!) {should eq("yo!") }
    pending(:you!) {should eq("yo!")}
    

    But to get the pending with a message, you should do:

    its(:yo!) {pending "waiting on client"; should eq("yo!") }
    

    That’ll give you the output

      Yo yo! 
        # waiting for client
        # ./yo.rb:16
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this code: ImageButton call = new ImageButton(context); call.setId(9001+result.index); call.setBackgroundResource(R.drawable.small_call); LinearLayout.LayoutParams call_params =
I have this piece of code: public static DateDialogFragment newInstance(Context context, DateDialogFragmentListener listener) {
Let's say I have this piece of code: CGColorSpaceRef colorSpaceRGB = CGColorSpaceCreateDeviceRGB(); CGContextSetStrokeColorSpace(context, colorSpaceRGB);
Context I have this piece of Java Code btn.setOnAction(new EventHandler<ActionEvent>() { public void handle(ActionEvent
In the setup of my test cases, I have this code: ApplicationContext context =
i have this code that passes the core data context to one of the
I have try this code on DatabaseHelper.java Line Number 34 public DatabaseHelper(Context context) throws
Currently I have this code that works fine [UIView setAnimationDidStopSelector:@selector(animationDone:finished:context:)]; - (void)animationDone:(NSString *)animationID finished:(BOOL)finished
I Have this code : MainPage.cs public class MainPage : System.Web.UI.Page { public string
I have this code: public article GetArticleByWebSite(string webSite) { using (var context = new

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.