Create a Ruby Gem for a jQuery Plugin: Basics
How to be a Good Developer
New Rails Shiny: ActiveJob
Getting Started with Jekyll Collections
Buy Time with the Braintree v.zero SDK
Heap Data Structure in Ruby
Understanding SQL Through Rails
What You Don’t Get With ActiveJob
Write Modular RSpec
Ratyrate: Add Rating to Your Rails App
This tutorial explores how to add rating functionality to a Rails application. It will go through some of the more popular Ruby gems that provide such functionality, as well as how to implement rating from scratch. We will use the same application used in the the Online store article By Karim El Hussieny, in which the basic application creation process is explained in detail. Please refer to that post to learn how Karim scaffolded and styled the basic application.
Increase Engagement with Merit and Gamification
Ruby Benchmarking Lessons Learned
Testing Page Objects with SitePrism
In this article, I am going to talk about SitePrism, a testing tool that I have recently learned about and been enjoying. Here is a description of SitePrism from its' creators:
SitePrism gives you a simple, clean and semantic DSL for describing your site using the Page Object Model pattern, for use with Capybara in automated acceptance testing.
Before we go into SitePrism, let's talk about page objects, because page objects are central to understanding the philosophy behind SitePrism.
Functional Programming: Pure Functions
Realtime Mini-Chat with Rails and Faye
Sorting Algorithms in Ruby
Functional Programming in Ruby: Value Objects
Mini-Chat with Rails
Fun Sending Mail on Rails
Integrate Braintree Payments into Rails
All Rubyists Love Logging
Breadcrumbs on Rails with Gretel
Stress Testing with Loader.io
The Basics of Capybara and Improving Your Tests
Capybara is a web-based automation framework used for creating functional tests that simulate how users would interact with your application. Today, there are many alternatives for web-based automation tools, such as Selenium, Watir, Capybara, etc. All of these tools have the same purpose, but there are slight differences that make each of them more or less suitable.
The main characteristic that developers are aiming for is the ability to have tests that are modular, easy to write, and easy to maintain. This is especially true in Agile/TDD environments where writing tests is second nature. These tests are expected to give good and fast feedback on code quality. As time goes by, the number of tests grows and it can be a real nightmare to maintain the tests, especially when the tests are not modular and simple enough.
In this tutorial, I will describe some of Capybara key features and explain why it could be your tool of choice for developing web-based automated tests.