RubyFlow The Ruby and Rails community linklog

OOP DSL for Capybara

We use OOP to make our code be better, why we don’t care too much about our tests? Nat Ritmeyer created a cool library which provides OOP DSL for Capybara. Its name is SitePrism. I have been using this library for 5 months. As a result, my tests look much much more clear and I feel like I have started writing less code for my acceptance tests, because I can inherit sections, pages and so on. I strongly recommend you to take a look at this library.

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