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!

Case of fragile tests: testing something twice

Having one class use another class’s functionality happens a lot in object oriented programming. That’s called delegation and indeed this is how we make stuff work. Upon testing both classes it’s very easy to test some functionality twice which leads to fragile tests.

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