Frontendrails logo Front End Rails

Testing Third Party Interactions

Testing Third Party Interactions

Giant Robots Smashing into Other Giant Robots Giant Robots Smashing into Other Giant Robots 15 March 2017

How to test integrations with a third-party API.

Principles of Effective Testing with Capybara

Principles of Effective Testing with Capybara

Codeship Codeship 09 March 2017

Last updated:Thursday, March 9, 2017Currently the world of integration testing is overwhelmed with complexity. Industry standards require adding more layers of abstraction with tools like Cucumber, SitePrism, and others, and as a result it becomes more difficult and tedious for a developer to write a simple test. But as any other part of the codebase, […]

Chain RSpec Matchers for Improved Test Readability

Chain RSpec Matchers for Improved Test Readability

Giant Robots Smashing into Other Giant Robots Giant Robots Smashing into Other Giant Robots 09 March 2017

Improve test readability by leveraging RSpec’s matcher composition to make multiple assertions with a single matcher.

Stubbing the AWS SDK

Stubbing the AWS SDK

Semaphore Semaphore 21 February 2017

If you’re reading this, dear Devop, you can probably remember a time before you were a Devop, or a Site Reliability Engineer, or whatever. Back to a time when you were a Systems Administrator, or a Unix Technician, or an Infrastructure Engineer; when your job involved switch blades and RAID cards, and you had to worry about LUN alignment and BIOS configurations.

Status report: Everyday Rails Testing with RSpec for RSpec 3.5 and Rails 5

Status report: Everyday Rails Testing with RSpec for RSpec 3.5 and Rails 5

Everyday Rails Everyday Rails 20 February 2017

A progress report on the latest version of my Rails testing book.

How to unit test classes which depend on Rails models?

How to unit test classes which depend on Rails models?

Arkency Arkency 05 February 2017

Let's say you have such a class: (this code is borrowed from this Reddit thread ``` !ruby class CreateSomethingService def initialize(params) parse_parameters params end def run Something.create(name: @name) end private def parse_parameters(params) @name = params[:name] end end ```

Keeping code quality high

Keeping code quality high

Made Made 31 January 2017

Code quality is a term that is often thrown around in the software engineering industry. And like the art of coding itself, it is very subjective and its true meaning will differ depending on an individual, or a team's beliefs. But at its heart most engineers and teams would agree that good qual…

How to time travel safely, but only on your tests!

How to time travel safely, but only on your tests!

Lucas Nogueira Lucas Nogueira 25 January 2017

During your journey as developer you will need to manipulate time, and by this I mean freezing it, warping to the future or back to the past. We use this when we want to test some code behavior determined by some date. For example, we may need to test some status change of an object when the date is a past one.

Small steps to DRYer RSpec

Small steps to DRYer RSpec

zverok with ruby zverok with ruby 22 January 2017

RSpec API is constantly evolving towards as DRY and readable DSL as possible. Though, there are several things (tricks and additional methods) that could make your specs even DRYer.

Integration Testing Ruby on Rails with Minitest and Capybara

Integration Testing Ruby on Rails with Minitest and Capybara

Semaphore Semaphore 18 January 2017

Capybara is an acceptance test framework for web applications. Learn how to use it with Minitest for integration testing of your Ruby on Rails applications.

Tech Talk: Testing

Tech Talk: Testing

Bloc Bloc 14 January 2017

Ariel talks about his experience in testing, both the good and the bad. Check it out below.

Run your tests on production!

Run your tests on production!

Arkency Arkency 13 January 2017

Running your tests on “production”? On the real, live system? Sounds unorthodox? There might be situations, where it’s actually a good idea. Read on!
Announcing FormLinter

Announcing FormLinter

Giant Robots Smashing into Other Giant Robots Giant Robots Smashing into Other Giant Robots 09 November 2016

A tool for making better forms.

Gold Master Testing

Gold Master Testing

Hashrocket Hashrocket 08 November 2016

Gold Master Testing is a technique for evaluating complex legacy systems.

Brief look at RSpec's formatting options

Brief look at RSpec's formatting options

Ombulabs Ombulabs 08 November 2016

A few weeks ago, I noticed weird output in the RSpec test suite (~4000 tests) for a Rails application: .............................................................................................unknown OID 353414: failed to recognize type of '<field>'. It will be treated as String ........................................................................................................................................... This Rails app uses a PostgreSQL database. After some Googling, it turns out that this is a warning from PostgreSQL. When the database doesn't recognize the type to use for a column, it casts to string by default.