LoginSignup
14
14

More than 5 years have passed since last update.

rspec Pending Tips

Last updated at Posted at 2013-01-07

it, specify, exampleそれぞれの先頭にxをつけるだけで、Pendingになる。

describe Foo do
  xit { 1.should eq 1 }
  xspecify { 1.should eq 1 }
  xexample { 1.should eq 1 }
end

Result

Pending:
  Foo 
    # Temporarily disabled with xit
    # ./spec/models/foo_spec.rb:4
  Foo 
    # Temporarily disabled with xexample
    # ./spec/models/foo_spec.rb:6
  Foo 
    # Temporarily disabled with xspecify
    # ./spec/models/foo_spec.rb:5
14
14
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
14
14