RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

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!

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.

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

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in