Pending Examples via NotImplementedError in rSpec
It’s quite handy when NotImplementedError results in a pending example rather than in a broken one. Fortunately with rSpec it’s easy-peasy: Pending examples via NotImplementedError in rSpec.
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
It’s quite handy when NotImplementedError results in a pending example rather than in a broken one. Fortunately with rSpec it’s easy-peasy: Pending examples via NotImplementedError in rSpec.
Comments
So instead of it “should work” { pending “why” {} } } you can just do def the_definition; raise NotImplementedError end or def the_definition; raise NotImplementedError.new(“The message”) end
Post a comment