How to disable display of pending (missing) specifications in RSpec?

I have a few missing specifications.

Pending: (Failures listed here are expected and do not affect your suite status) 1) ... # Not yet implemented # ./spec/requests/request_spec.rb:22 

How to suppress the conclusion of pending specifications?

+5
source share
1 answer

You can do this by replacing "it" in the test header with "xit".

 it "returns true" do 1.should == 1 end 

Replaced by:

 xit "returns true" do 1.should == 1 end 

Adding x before you skip this test.

-3
source

All Articles